Page 1 of 1

SetBlob & GetBlob

Posted: Fri Sep 23, 2005 2:05 pm
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.

Re: SetBlob & GetBlob

Posted: Fri Sep 23, 2005 2:33 pm
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

Posted: Mon Sep 26, 2005 7:12 am
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 ?

Posted: Mon Sep 26, 2005 11:38 am
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?

Posted: Tue Sep 27, 2005 7:32 am
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. ;)