SetBlob & GetBlob

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

Moderators: XnTriq, xnview

Post Reply
eincioglu
Posts: 4
Joined: Fri Sep 23, 2005 6:42 am
Location: Istanbul

SetBlob & GetBlob

Post by eincioglu »

How to use this function ? u have example code ? We are reading image from database with recordset. Thank you for all.

Come usare questa funzione? siete avere codice di esempio? Siamo immagine della lettura da base di dati con recordset. Grazie per tutti.
Emrah Incioglu
User avatar
xnview
Author of XnView
Posts: 34083
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: SetBlob & GetBlob

Post by xnview »

eincioglu wrote:How to use this function ? u have example code ? We are reading image from database with recordset. Thank you for all.
You must provide to GetBlob a byte array
Pierre.
eincioglu
Posts: 4
Joined: Fri Sep 23, 2005 6:42 am
Location: Istanbul

Post by eincioglu »

My code is ,

<!--#include file="library/goruntu_al.asp"-->
<%
Set ctrl = server.createobject("GflAx.GflAx")
resim = goruntu_al ("elekarsiv.enc","header","frontpage"," refno ='T05K9NF07006CS'")
response.ContentType ="image/tiff"
With ctrl
.GetBlob (resim)
Response.BinaryWrite .SetBlob()
end with
set ctrl=nothing
%>
Image is blank(black) view . Can u help me ?
Emrah Incioglu
User avatar
xnview
Author of XnView
Posts: 34083
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

eincioglu wrote:My code is ,

<!--#include file="library/goruntu_al.asp"-->
<%
Set ctrl = server.createobject("GflAx.GflAx")
resim = goruntu_al ("elekarsiv.enc","header","frontpage"," refno ='T05K9NF07006CS'")
response.ContentType ="image/tiff"
With ctrl
.GetBlob (resim)
Response.BinaryWrite .SetBlob()
end with
set ctrl=nothing
%>
Image is blank(black) view . Can u help me ?
I don't know goruntu, do you know the type of the object returned?
Pierre.
eincioglu
Posts: 4
Joined: Fri Sep 23, 2005 6:42 am
Location: Istanbul

Post by eincioglu »

Pierre,

The object type is tiff. goruntu_al is function and returned object. This function is returned recordset. Recodset value is "resim" and returned binary value. You have not problem now. Thank you. ;)
Emrah Incioglu
Post Reply