Article View: borland.public.cppbuilder.internet.socket
Article #2752Re: MIME Encoding and TFileStream error
From: Mr. Wuf
Date: Mon, 30 Jan 2006 09:14
Date: Mon, 30 Jan 2006 09:14
9 lines
1364 bytes
1364 bytes
Sorry, my next problem: I need to transfer a binary file as a string. When I
decode the base64 string to a TFileStream I get corrupted files!
TFileStream *FStream = new TFileStream("C:\\test.png", fmCreate |
fmOpenReadWrite);
IdDecoderMIME1->DecodeToStream(Memo1->Text,FStream);
// FStream->Size = 130677; // original filesize: 130677, size of corrupted
file: 140768
delete FStream;
Technical Details
Message-ID:
<43ddd7f8$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed.gamma.ru!Gamma.RU!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43dd0b59@newsgroups.borland.com> <43dd2315$1@newsgroups.borland.com> <43dd2424$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,8c23835e94ef54bb X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Mr. Wuf" <wuf@email.si> Newsgroups: borland.public.cppbuilder.internet.socket References: <43dd0b59@newsgroups.borland.com> <43dd2315$1@newsgroups.borland.com> <43dd2424$1@newsgroups.borland.com> Subject: Re: MIME Encoding and TFileStream error Date: Mon, 30 Jan 2006 10:14:05 +0100 Lines: 11 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 84.59.119.36 Message-ID: <43ddd7f8$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1138612216 84.59.119.36 (30 Jan 2006 01:10:16 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsfeed.gamma.ru!Gamma.RU!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail