Article View: borland.public.cppbuilder.database.ado
Article #1722CreateBlobStream
From: kdl
Date: Mon, 19 Apr 2004 14:35
Date: Mon, 19 Apr 2004 14:35
16 lines
1605 bytes
1605 bytes
I am having major difficulty in getting CreateBlobStream to work properly
with Builder 6. I am using the code below and I can get it to compile, but
the program crashes with a message like "Invalid Variant Operation". I am
connected to a MS SQL database and the field that I am trying to access is
defined as a VarByte with a size of 8000. The help in BCB6 is not correct
for ADO blobs and I cannot find any other help on the web. I am stuck at
this point. Please help if there are any sugestions.
int MemSize;
char *Buffer;
TADOBlobStream *Stream;
//Crashes on this line. I have tried many variations including
"CreateBlobStream"with no success.
Stream = new TADOBlobStream((TBlobField
*)adoTraceDetailsDataSet->FieldByName("TraceArray") , bmRead);
Technical Details
Message-ID:
<4083e397@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,eb986792cae970be,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2004-04-19 07:40:32 PST From: "kdl" <me@isp.net> Newsgroups: borland.public.cppbuilder.database.ado Subject: CreateBlobStream Date: Mon, 19 Apr 2004 09:35:08 -0500 Lines: 18 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: 65.40.205.94 Message-ID: <4083e397@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1082385303 65.40.205.94 (19 Apr 2004 07:35:03 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail