Home     Products      Support      Corporate     Sign In 
Support Knowledge Base, Article 701
Product
ImgWriter
Title
Setting Response.Buffer to "true" has no effect when using ImgWriter to stream an image to the browser.
Problem
When ImgWriter streams an image to the browser, it disregards any settings for the Response.Buffer property and sets the value to "false". This conserves server-side resources as the image will not need to be buffered and can be sent out using chunked transfer encoding.
Solution

In version 1.1.6 and higher of ImgWriter, the BufferResponse property is available to override ImgWriter's default behavior of setting the Response.Buffer property to false. Set this property as you would set the Response.Buffer property.

    <%
   Dim objImage
   Set objImage = Server.CreateObject("SoftArtisans.ImageGen")
   '--- This is like setting Response.Buffer = "true"
   '--- except ImgWriter will not ignore the setting.
   objImage.BufferResponse = "true"
   ...
   Set objImage = Nothing
   %>

This property was added to ImgWriter to address an issue with Internet Explorer's handling of page refreshes. Please see the following KB article for more information: http://support.softartisans.com/kbview.aspx?ID=679

Created : 8/1/2003 5:34:47 PM (last modified : 8/1/2003 5:34:45 PM)
Rate this article!
Comments