Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing Binary Image file

Status
Not open for further replies.

jvande

MIS
Jun 6, 2001
115
US
Here is the code I use to write my image to the screen
Response.BinaryWrite rs("File Data")
Unfortunately, the page that I want it to write the image to is an <html> document so it just writes the binary data to the screen instead of the actual image. Please help me. Is there anyway around this.

Thanks,
Josh
 
yeh - put the binarywrite in a seperate page and refence it from the img src: say the html page is called HTML.htm and the image binary is returned from the asp page ASPIMG.asp;

in HTML.htm: <img src=&quot;ASPIMG.asp&quot; />

and within the ASPIMG.asp file, set the content-type to image/gif|jpeg (gif or jpeg or whatever).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top