Article View: borland.public.cppbuilder.database.ado
Article #2057BLOB
From: noIdea
Date: Wed, 26 Nov 2003 13:41
Date: Wed, 26 Nov 2003 13:41
21 lines
1476 bytes
1476 bytes
I'm using TADOConnection, TADOQuery, TADOBlobStream to select data from database and get BLOB from field. But I have very interesting problem. When I get blob from field using following code, the BLOB size and data are different from data inserted into database. All 0xA bytes in BLOB are replace with 0xD 0xA. :-) What do I have to do, to prevent this feature. Thank a lot. This is my code: TADOBlobStream *stream; stream = new TADOBlobStream((TBlobField*)connections[id].query->Fields->Fields[0], bmRead); size = stream->Size; ptr = (unsigned char*) malloc(size); stream->Read(ptr, size); delete stream; noIdea
Technical Details
Message-ID:
<3fc4ad72$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,90424c2fca6d7da1,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-11-26 05:44:34 PST From: "noIdea" <noIdea@pobox.sk> Newsgroups: borland.public.cppbuilder.database.ado Subject: BLOB Date: Wed, 26 Nov 2003 14:41:05 +0100 Lines: 23 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: 62.168.93.157 Message-ID: <3fc4ad72$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1069854066 62.168.93.157 (26 Nov 2003 05:41:06 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail