Article View: borland.public.cppbuilder.internet.socket
Article #905Re: Sending BMP over Indy 9
From: Remy Lebeau (TeamB)
Date: Thu, 23 Aug 2007 20:34
Date: Thu, 23 Aug 2007 20:34
25 lines
1839 bytes
1839 bytes
"Skaarak" <skaarak@NOakamailSPAM.com> wrote in message news:46cdea2e$1@newsgroups.borland.com... > I set the position to be 0 after the read stream, and I do > have a small (very small) portion of the BMP. Then you are not sending the full BMP to begin with, or you are not displaying it correctly after recieving it. Also keep in mind that the server code you showed is not thread-safe, so make sure that no other thread is modifying the BMP while it is being stored into the TStream that will be sent. > Do I need to set the position to 0 after I SaveToStream > (from the BMP)? No, because you are setting the AAll parameter of WriteStream() to true, which will send the entire stream. > Is my 'ms->Size' the correct value for that portion of the call? It is fine. Gambit
Technical Details
Message-ID:
<46cdf007@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!194.25.134.62.MISMATCH!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <46cdbcc9$1@newsgroups.borland.com> <46cdd181$1@newsgroups.borland.com> <46cdea2e$1@newsgroups.borland.com> Subject: Re: Sending BMP over Indy 9 Date: Thu, 23 Aug 2007 13:34:19 -0700 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 75.83.29.61 Message-ID: <46cdf007@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1187901447 75.83.29.61 (23 Aug 2007 13:37:27 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!194.25.134.62.MISMATCH!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail