Loading Photo Stored Database with ASP

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Loading Photo Stored Database with ASP

Post 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?
HavokDelta6
Forum Newbie
Posts: 16
Joined: Mon Sep 28, 2009 4:11 pm

Post by HavokDelta6 »

aaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Last edited by HavokDelta6 on Tue Mar 20, 2012 6:00 am, edited 1 time in total.
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Re: Loading Photo Stored Database with ASP

Post by Jade »

I'm not loading the image with PHP. I'm using an ASP response.BinaryWrite.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Loading Photo Stored Database with ASP

Post by jackpf »

I think IE uses the image/pjpeg content type, although I'm not sure.
User avatar
Jade
Forum Regular
Posts: 908
Joined: Sun Dec 29, 2002 5:40 pm
Location: VA

Re: Loading Photo Stored Database with ASP [Solved]

Post 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!
Post Reply