🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Sending BMP over Indy 9

#906
From: Bob Gonder
Date: Fri, 24 Aug 2007 01:30
17 lines
1547 bytes
Skaarak wrote:

>Thanks for the thought.  I set the position to be 0 after the read stream,
>and I do have a small (very small) portion of the BMP.

>            AThread->Connection->WriteStream(ms, true, true, ms->Size);
>            delete (ms);

Is WriteStream blocking?
If not, then the BMP could be disappearing before it is sent.

>    IdTCPClient1->ReadStream(ms, -1, false);
>    sentbmp->LoadFromStream(ms);

Is ReadStream blocking, and does it know the size of
the incoming data stream?
If not, then LoadFromStream could be quitting early?
Technical Details
Message-ID: <qpcsc31vrb1easbnjaq1samk5gq4adjcd8@4ax.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <46cdbcc9$1@newsgroups.borland.com> <46cdd181$1@newsgroups.borland.com> <46cdea2e$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,76a7f9651a366cc8
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: Sending BMP over Indy 9
Date: Thu, 23 Aug 2007 18:30:43 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <qpcsc31vrb1easbnjaq1samk5gq4adjcd8@4ax.com>
References: <46cdbcc9$1@newsgroups.borland.com> <46cdd181$1@newsgroups.borland.com> <46cdea2e$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.69.88.24
X-Trace: newsgroups.borland.com 1187919039 69.69.88.24 (23 Aug 2007 18:30:39 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail