Dear friends
I have some picture stored to SQL Table as Image Field. but I Don't know what is the format of this pictures they may be JPG or BMP format. for retrieving this images I mast know what is the format of each stored Picture.
is any method to finding this stored picture format?
Please help me.
Thanks

If there is really no additional description in the database, I guess you ronly solution would be to check for specific headers. All file formats have them. Perhaps you kind find a piece of code that does this for you.

Dear Pritaeas
Thank you for your reply
it seems that your solution is Correct but I don't know how can I do that
how can read header of picture data that is stored to database ? and how can find the format of picture from that?
thank you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.