BLOB data as src attribute of an image tag?

You should have, in the database, a content-type field as well as the BLOB data, unless the BLOB data is one fixed type (e. G image/png ) where you can hardcode it in your image. Php script.

You'll need to include a new header with the Content-type: set header('Content-type: image/png') But you'll have to find out what the image type is - trial and error will do I guess, it's gotta be one of image/jpeg, image/png or image/gif surely?

You should have, in the database, a content-type field as well as the BLOB data, unless the BLOB data is one fixed type (e.g. , image/png) where you can hardcode it in your image. Php script. You'll need to include a new header with the Content-type: set.

Header('Content-type: image/png'); But you'll have to find out what the image type is - trial and error will do I guess, it's gotta be one of image/jpeg, image/png or image/gif surely?

Well, if you linked directly to the image the exact same data would be sent back, there's no distinction between a 'BLOB' and just data read by the webserver and sent to the browser. So, you're on the right track with the content-type idea... What does firebug say the content-type is? You might want to post the code for image.php.

Edit: So there we go... Just modify your script to look like: Picture;? > Replacing image/png with whatever format your images are.

Firebug says the content-type is Content-Type text/html so that must be the problem. I think some kind of modification is required via . Htaccess?

– stef Jan 6 '10 at 15:02 Shouldn't be, post your image.php. – rfunduk Jan 6 '10 at 16:42 Done, see above please. – stef Jan 6 '10 at 16:52.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions