🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #2746

MIME Encoding and TFileStream error

#2746
From: Mr. Wuf
Date: Sun, 29 Jan 2006 18:40
10 lines
1187 bytes
Hello,

why does this code not work? Error: Stream read error

  TFileStream *FStream = new TFileStream("C:\\somefile.xyz", fmOpenRead ||
fmShareDenyWrite);
  String SndText = IdEncoderMIME1->Encode(FStream, FStream->Size);
  delete FStream;

Where is the problem?
Technical Details
Message-ID: <43dd0b59@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,8c23835e94ef54bb,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Mr. Wuf" <wuf@email.si>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: MIME Encoding and TFileStream error
Date: Sun, 29 Jan 2006 19:40:58 +0100
Lines: 12
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.108.239
Message-ID: <43dd0b59@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1138559833 84.59.108.239 (29 Jan 2006 10:37:13 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!nntp.theplanet.net!inewsm1.nntp.theplanet.net!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail