🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #385

Re: http image requests?

#385
From: Hans Galema
Date: Tue, 19 Dec 2006 17:42
13 lines
1380 bytes
chris wrote:
> I would like to be able to take a jpeg from a server to an 
> image box in C++ builder 6.0. Lets say, at address 
> "http://192.168.1.10/folder/image.jpg". Is there any way 
> possible that I can pull the file straight from that address 
> into my application?

Yes you can.

Use TIdHttp to Get it from that url in a stream.
Then use Image1->Picture->LoadFromStream();

Hans.
Technical Details
Message-ID: <458824ea@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <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
Date: Tue, 19 Dec 2006 18:42:58 +0100
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.web
Subject: Re: http image requests?
References: <458812d8$1@newsgroups.borland.com>
In-Reply-To: <458812d8$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 145.98.201.248
Message-ID: <458824ea@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1166550250 145.98.201.248 (19 Dec 2006 09:44:10 -0800)
Lines: 13
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail