Article View: borland.public.cppbuilder.database.ado
Article #4971ADO and BLOBs
From: Amr Moselhy
Date: Mon, 10 Sep 2001 14:56
Date: Mon, 10 Sep 2001 14:56
29 lines
1514 bytes
1514 bytes
regarding to the first problem i posted
i found this code in the Builder help , telling me about using
a class called TADOBlobStream :
int S;
ADOTable1->Edit();
TADOBlobStream *BS = new TADOBlobStream(ADOTable1->Fields->Fields[1],
bmWrite);
try
{
S = Memo1->GetTextLen() + 1;
char *P = new char[S];
Memo1->GetTextBuf(P, S);
BS->Write(P.c_str(), P.Length());
}
__finally
{
delete BS;
}
it is found in the explaination of TADOBlobStream::Write function
i tried to test this code in my programs but it didnt work
i got an error saying
no similar constructor found ,
any advice ????
Amr Mos
Technical Details
Message-ID:
<3b9cd403_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!novia!novia!intgwlon.nntp.telstra.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,2b4e164fcc7495a2 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-09-10 08:11:38 PST Reply-To: "Amr Moselhy" <amoselhy@hotmail.com> From: "Amr Moselhy" <amoselhy@primasoft.com.eg> Newsgroups: borland.public.cppbuilder.database.ado Subject: ADO and BLOBs Date: Mon, 10 Sep 2001 17:56:13 +0300 Lines: 31 Organization: Primasoft X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 NNTP-Posting-Host: 208.5.5.251 Message-ID: <3b9cd403_1@dnews> X-Trace: dnews 1000133635 208.5.5.251 (10 Sep 2001 07:53:55 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!novia!novia!intgwlon.nntp.telstra.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews