Article View: borland.public.cppbuilder.internet.web
Article #436Re: http image requests?
From: Remy Lebeau (TeamB)
Date: Tue, 19 Dec 2006 18:40
Date: Tue, 19 Dec 2006 18:40
27 lines
1847 bytes
1847 bytes
"chris" <help@help.com> wrote in message news:458812d8$1@newsgroups.borland.com... > I would like to be able to take a jpeg from a server to > an image box in C++ builder 6.0. You will have to download the image to a TStream or a file first, and then load that afterwards. > Is there any way possible that I can pull the file straight from that > address into my application? There are many ways to do that. Use a third-party HTTP component, such as the one from Indy (http://www.indyproject.org), ICS (http://www.overbyte.be), or Synapse (http://www.ararat.cz/synapse). Or use Microsoft's WinInet or WinHTTP libraries, such as the URLDownloadToFile (http://msdn.microsoft.com/workshop/networking/moniker/reference/functions/u rldownloadtofile.asp) or URLDownloadToCacheFile() (http://msdn2.microsoft.com/en-gb/library/ms775122.aspx) function. > I have also tried using the "CppWebBrowser" ActiveX to open the page Do not go that way. That is a lot of unnecessary overhead. Gambit
Technical Details
Message-ID:
<458831cf$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<458812d8$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,1d9d6bbac5c5c770 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.web References: <458812d8$1@newsgroups.borland.com> Subject: Re: http image requests? Date: Tue, 19 Dec 2006 10:40:02 -0800 Lines: 29 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.34.171 Message-ID: <458831cf$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1166553551 75.83.34.171 (19 Dec 2006 10:39:11 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail