Having an image file already stored into a database as a byte array, is it possible to find the image file extension from the byte array contents?
I can get the byte array from the database. I need to show the image file into the screen.
Before displaying it, I want to have the image file extension, such as .png
,.jpg
or .jpeg
, etc..