Login  
Search All Forums
Dart Home | PowerWEB Zoom for ASP.NET | Custom Development Reply | PowerWEB Zoom for ASP.NET Topics | Forums   
AuthorForum: PowerWEB Zoom for ASP.NET
Topic: Major Issue...any ideas?
chaynes68

From: concord, MA USA
Posts: 5
Member Since: 09/26/06
posted October 3, 2006 5:21 PM

It seems like the callbackmanager is breaking some code that returns dynamically generated images. Reduced to its simplest form:

Dim x As New Bitmap("someimage.gif")
mo_Bitmap.Save(Response.OutputStream,ImageFormat.Gif)

With callbackmanager httpModule DISABLED this code works as expected, enabled the image is not returned.

Any idea why this is happening?

Chris
chaynes68

From: concord, MA USA
Posts: 5
Member Since: 09/26/06
posted October 3, 2006 6:18 PM

I solved it. Looks like you must specify the content type in the http header:

Response.ContentType = "image/GIF"

There should be a warning someplace about this...maybe there is and I missed it.

Bottom line: If you dynamically generate images and use PowerWeb.Zoom you MUST specify a content type otherwise the http handler will mess with your image. This is one of those things that browsers figure out even without specifying a content type but is technically incorrect I guess.

Chris
Reply | PowerWEB Zoom for ASP.NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX