[thelist] Streaming a Binary as image src

Joe Crawford jcrawford at avencom.com
Mon Mar 19 14:10:20 CST 2001


I don't have any direct knowledge of this -- but perhaps this would be
helpful?

http://support.microsoft.com/support/kb/articles/Q193/9/98.ASP

Anthony Baratta wrote:
> I want to stream an image "within" the HTML, not as the sole content of the
> page.
> Here's an example....
> HiddenImage.html
> <html><body>
> <img src="./showimage.asp" width="141" height="142">
> </body></html>

> ShowImage.asp
> <%
>      ImageDir = "Drive:\Dir\SubDir\"
>      ImageName = "Image.gif"
> 
>      Set oFM = CreateObject("SoftArtisans.FileManager")
>      Set oBS = oFM.OpenBinaryFile(ImageDir & ImageName)
>      Response.ContentType = "image/GIF"
>      Response.Addheader "Content-Disposition", "inline; filename=" & ImageName
>      Response.BinaryWrite oBS.ReadAll
> 
>      'Clean up....
>      Set oBS = Nothing
>      Set oFM = Nothing
>      Response.End
> %>

HTH,
	Joe <http://artlung.com/>
--
Joe Crawford ||||||||||||||       mailto:jcrawford at avencom.com
||||||||||||||||||||||||             http://www.avencom.com
|||||||||||||||||||||||||||      Avencom: Set Your Sites Higher




More information about the thelist mailing list