Page 1 of 1
Loading Photo Stored Database with ASP
Posted: Mon Sep 28, 2009 5:25 pm
by Jade
I have a photo that I've used 64 encoding to break up and store in a database field. I've been using a response.binaryWrite to display the photo after it's stored. It works great on Firefox but dies on Internet Explorer. The only thing I could see that may be causing it was that there's no meta content type. So I added response.ContentType="image/JPEG" and still get nothing.
Anyone know why the image will load on Firefox but not in IE?
Posted: Mon Sep 28, 2009 5:59 pm
by HavokDelta6
aaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Re: Loading Photo Stored Database with ASP
Posted: Tue Sep 29, 2009 9:16 am
by Jade
I'm not loading the image with PHP. I'm using an ASP response.BinaryWrite.
Re: Loading Photo Stored Database with ASP
Posted: Tue Sep 29, 2009 12:13 pm
by jackpf
I think IE uses the image/pjpeg content type, although I'm not sure.
Re: Loading Photo Stored Database with ASP [Solved]
Posted: Wed Jan 20, 2010 2:26 pm
by Jade
I tried that too. It turns out it was something with the form encoding that was corrupting it in IE. I was trying to post the photo with other form data. Once I removed the photo into it's own form it was fine. Thanks for the headache Microsoft!