Images from database - format?

J

John

I'm storing JPG images in a sql server table (column type 'image'), and
extracting them using a GetImage.aspx?id=99 type command.

But when I view the page in my browser and right-click on the image, it only
allows me to save it as a BMP!! Is there any way to tell what's comming down
the wire, BMP or JPG format?

I obviously don't want the extra overhead of transmitting raw bmps.

Thanks,

John
 
L

Lucas Tam

Is there any way to tell what's comming down
the wire, BMP or JPG format?

You'll need to read the byte header of the BLOB, or you can add a column in
the table flagging the image type.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top