Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Sep : Re: HttpServer - How to decode uploaded binary file?

www.cryer.info
Managed Newsgroup Archive

Re: HttpServer - How to decode uploaded binary file?

Subject:Re: HttpServer - How to decode uploaded binary file?
Posted by:"Reiner" (slu..@yahoo.com)
Date:Wed, 19 Sep 2007 11:57:42

The ReadBody method supports a stream so your data can be anything you want.
I however wrote my own MIME decoder for my Indy based web server so that
people can upload files but seeing TIdMessageDecoderMIME now I could
probably have used that.

"Nikos Bakolas" <nikos_nospam@anadelta_nospam.com> wrote in message
news:46efd872$1@newsgroups.borland.com...
> I 'm using an HttpServer component and I'm trying to save an uploaded
> binary file (sent with POST multipart/form-data).
> The problem is (I think) that TIdMessageDecoderMIME interprets the
> attachments as text files. Is that true? Does it work with binary
> attachments somehow?

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive