Re: File Upload via HTTP Client

Giganews Newsgroups
Subject: Re: File Upload via HTTP Client
Posted by:  Remy Lebeau (TeamB) (gambit47.no.spam@no.spam.yahoo.com)
Date: Sun, 23 May 2004

"Hendrik Lenz" <hendrikle…@gmx.de> wrote in message
news:5397DB47479EE240hendrikle…@gmx.de...

> i will do an Http based Fileupload (as a HTML Form via Multipart)
> with the HTTP Client Componet from Indy. Is there any example
> for this? Or what must i do to do this? Has anyone some Tips for me?

Use the TIdMultiPartDataStream class. It has an AddFile() method.  TIdHttp
has an overloaded version of the Post() method that works with
TIdMultiPartDataStream.

Gambit

Replies

In response to

File Upload via HTTP Client posted by Hendrik Lenz on Sun, 23 May 2004