View a tiff image in a ASP page

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, xnview

abellos
Posts: 6
Joined: Fri Nov 09, 2007 6:46 pm

View a tiff image in a ASP page

Postby abellos » Wed Sep 24, 2014 1:04 pm

Hi guys,
i need to display a tiff image in a ASP page after reduce it. But i need to see the image in a single page not use 2 page asp.
I use the code:

Code: Select all

Dim Path, File

Path = Server.MapPath(".")
File = Path & "\image.tif"

Set ctrl = server.createobject("GflAx.GflAx")


With ctrl
   '.enablelzw= True
   .LoadBitmap file
   .SaveformatName = "jpeg"

   response.contenttype = "image/jpeg"
   response.binarywrite .SendBinary
end with

set ctrl=nothing


the problem is that i see and Whole page of chars and not my expected image.
I understood that is the .sendBinary but instead of this function what can i use?
Thanks in advance

Return to “GFL SDK”

Who is online

Users browsing this forum: No registered users and 3 guests