🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #579

Re: ADO & BLOB

#579
From: Mark Guerrieri
Date: Tue, 03 Jan 2006 19:54
50 lines
2401 bytes
Try using TADOBlobStream to read the data from the field...

Mark

"Gheorghe" <gmusca@dnt.ro> wrote in message
news:43ba6b7e@newsgroups.borland.com...
> 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: <43bad5ef$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43b2fa90@newsgroups.borland.com> <43ba6b7e@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
From: "Mark Guerrieri" <mguerrieri@nospam_cmsgrp.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <43b2fa90@newsgroups.borland.com> <43ba6b7e@newsgroups.borland.com>
Subject: Re: ADO & BLOB
Date: Tue, 3 Jan 2006 14:54:20 -0500
Lines: 52
Organization: Creative Marketing Strategies
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 209.50.174.82
Message-ID: <43bad5ef$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1136317935 209.50.174.82 (3 Jan 2006 11:52:15 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail