Hi all,

I'm new to export picture from mysql database to file.

I found few tutorials over the internet. All the tutorials show that in order to export the image file, I need to know the file extension.

However, the file type of the images are not kept separately in one field in the database.

Do you have any idea to get the image file exported with the correct file type from the database?


Thanks in advance!