vb6 and blobs
Posted in 2000
This is a multi-part message in MIME format.
------=_NextPart_000_01D4_01BF9C99.D47AA500
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I am running 9.20 using VB as my front end. I have the following table
create table images(
image_nbr int,
picture blob,
primary key(image_nbr)
) put picture in imagedbs;
currently to do my inserts I am using the following statement
insert into images values (1,filetoblob('picture1.tif','client'))What I don't like is having to write my image to a file before I can do =
my insert. Is there any why that I can just use my variable that is =
holding my image to do the insert?
Thanks,
Joe
------=_NextPart_000_01D4_01BF9C99.D47AA500
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I am running 9.20 using VB as my front =
end. I have=20
the following table</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>create table images(</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> image_nbr =
int,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> picture =
blob,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> primary=20
key(image_nbr)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>) put picture in imagedbs;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>currently to do my inserts I am using =
the following=20
statement</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>insert into images values=20
(1,filetoblob('picture1.tif','client'))</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>What I don't like is having to write my =
image to a=20
file before I can do my insert. Is there any why that I can just use my =
variable=20
that is holding my image to do the insert?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Joe</FONT></DIV></BODY></HTML>
------=_NextPart_000_01D4_01BF9C99.D47AA500--