Page 1 of 1

View a tiff image in a ASP page

Posted: Wed Sep 24, 2014 1:04 pm
by abellos
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