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?
Loading Photo Stored Database with ASP
Moderator: General Moderators
-
HavokDelta6
- Forum Newbie
- Posts: 16
- Joined: Mon Sep 28, 2009 4:11 pm
aaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Last edited by HavokDelta6 on Tue Mar 20, 2012 6:00 am, edited 1 time in total.
Re: Loading Photo Stored Database with ASP
I'm not loading the image with PHP. I'm using an ASP response.BinaryWrite.
Re: Loading Photo Stored Database with ASP
I think IE uses the image/pjpeg content type, although I'm not sure.
Re: Loading Photo Stored Database with ASP [Solved]
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!