Article View: borland.public.cppbuilder.database.ado
Article #578Re: ADO & BLOB
From: Gheorghe
Date: Tue, 03 Jan 2006 12:31
Date: Tue, 03 Jan 2006 12:31
40 lines
2243 bytes
2243 bytes
I forgot to mention that the 1 byte that I get when reading the BLOB (Memo)
is 0x3F ('?').
The same happens when trying to manually Copy and Paste the content of the
Memo field directly from Access.
Isn't this some Windows way of signaling the impossibility to interprete the
content?
Any help/hint would be appreciated,
Thanks
"Gheorghe" <gmusca@dnt.ro> wrote in message
news:43b2fa90@newsgroups.borland.com...
> Hi,
>
> I'm trying to read a Memo field in a MS Access DB, using BCB6 and
ADOQuery.
> I constantly get the size of the blob as 1 byte, no matter what technique
I
> use.
> Any ideas?
>
> Here's the code
> =====================================
> aCon->ConnectionString = "Provider=MSDASQL.1;DSN=MS Access
> Database;DBQ=dbPath;DefaultDir=dbdir;DriverId=25;FIL=MS
> Access;MaxBufferSize=2048;PageTimeout=5;PWD=password";
> aCon->Open();
>
> aQuery->SQL->Clear();
> aQuery->SQL->Add("SELECT BLOBFIELD FROM TABLE;");
> aQuery->Open();
>
> TBlobField * bfield = (TBlobField *) aQuery->FieldByName("BLOBFIELD");
> int len = bfield->Size; // This is always 1
> =======================================
>
>
>
Technical Details
Message-ID:
<43ba6b7e@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!195.140.150.52.MISMATCH!ndsoftware.com!newsfeed.freenet.de!news.n-ix.net!npeer.de.kpn-eurorings.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43b2fa90@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,2a73d595005f452e X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Gheorghe" <gmusca@dnt.ro> From: "Gheorghe" <gmusca@dnt.ro> Newsgroups: borland.public.cppbuilder.database.ado References: <43b2fa90@newsgroups.borland.com> Subject: Re: ADO & BLOB Date: Tue, 3 Jan 2006 14:31:28 +0200 Lines: 41 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 193.231.117.195 Message-ID: <43ba6b7e@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1136290686 193.231.117.195 (3 Jan 2006 04:18:06 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!195.140.150.52.MISMATCH!ndsoftware.com!newsfeed.freenet.de!news.n-ix.net!npeer.de.kpn-eurorings.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail