Content-Transfer-Encoding in TIdMultiPartFormDataStream

Giganews Newsgroups
Subject: Content-Transfer-Encoding in TIdMultiPartFormDataStream
Posted by:  Jay Shin (j.sh…@xpedite.co.jp)
Date: Wed, 3 Mar 2004

Does anybody know how to add Content-Transfer-Encoding: base64 and encoded
file data as follows?

<HTTP POST DATA>
---3661037441141211464doug938617840980x866386223507368373006
content-disposition: form-data; name="Document"; filename = "test.tif"
content-type: TIFF-F
Content-Transfer-Encoding: base64

== Actual base64 encoded data here ==
---3661037441141211464doug938617840980x866386223507368373006
</HTTP POST DATA>

I think that there is only one function, AddFile, for adding a file as below
but I don't know how to add
"Content-Transfer-Encoding: base64" for Base 64 encoded file data.

        TIdMultiPartFormDataStream *mpfds = new TIdMultiPartFormDataStream;
        mpfds->AddFile("Document", "test.tif", "TIFF-F");

Does anyone know how to?
Thanks in advance.

Regards,
Jay

Replies