ImageMan ActiveX
Using the Image control in Server Side Web Applications

Among the new features in the ImageMan Suite is the ability to instantiate the image control from a server side ASP or ASP.NET server application. The new SaveToStream method allows the control to write image data directly to the Response stream eliminating the need to write images to disk before sending them to a client application.

 

The following VBScript code snippet illustrates the ease of loading a TIFF file on a server, converting it to a GIF writing it back to the clients browser without saving the GIF file to disk.

 

'set ImageMan's Picture to the filename stored on the server

im.Picture="input.tif"

 

Response.ContentType = "image/GIF"

im.MemoryFormat = "GIF"

 

'here, we'll send the image data back to client browser

im.SaveToStream()

 

Response.Flush

 

 

 

 


© 2014 Data Techniques, Inc. All rights reserved.

Submit feedback on this topic