🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JPEG

#4299
From: Hans Galema
Date: Thu, 03 Mar 2005 20:32
17 lines
1657 bytes
Lorenzo wrote:

> How can i send the image loaded with a "OpenPictureDialog1" to a script at
> the address http://www.domain.com/script.php ??

An "OpenPictureDialog does nor load an imagefile but only
gives the application a filename/filepath choosen by the user.
The application can then decide what to to with the choosen
file. So without using the html page you want to post data to
an url? You can use a HTTP component for that. Both TIdHTTP
and TNMHTTP will do. The Borland example for TNMHTTP will
show you how to do that.

You could also load the html page in a TCppWebBrowser that would
do the rest with or without a TOpenPictureDialog.

Hans.
Technical Details
Message-ID: <422774a7$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <422768f6@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,825e51def654111c
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 03 Mar 2005 21:32:01 +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.socket
Subject: Re: JPEG
References: <422768f6@newsgroups.borland.com>
In-Reply-To: <422768f6@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 129.125.201.248
Message-ID: <422774a7$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1109882023 129.125.201.248 (3 Mar 2005 12:33:43 -0800)
Lines: 17
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail