🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ADO & BLOB

#573
From: Viatcheslav V. Vassiliev
Date: Thu, 29 Dec 2005 08:52
40 lines
2238 bytes
Try to use Jet OLEDB provider. Connection string is:

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\mydb.mdb;

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 + 
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"Gheorghe" <gmusca@dnt.ro> ???????/???????? ? ???????? ?????????: 
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: <43b3a360$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!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>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,2a73d595005f452e
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <43b2fa90@newsgroups.borland.com>
Subject: Re: ADO & BLOB
Date: Thu, 29 Dec 2005 11:52:34 +0300
Lines: 42
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 85.93.138.132
Message-ID: <43b3a360$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1135846240 85.93.138.132 (29 Dec 2005 00:50:40 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail