Posting image

Giganews Newsgroups
Subject: Posting image
Posted by:  Alexandre (alexandrepires20…@yahoo.com.br)
Date: Fri, 3 Dec 2010

Remy, I need do somethink like this

var
        Strm: TIdMultipartFormDataStream;
    begin
        Strm :=3D TIdMultipartFormDataStream.Create;
        try
            Strm.AddFile('TheFormsFieldNameForTheFile', 'c:\path
to\image.jpg', 'image/jpeg');
            IdHTTP.Post('the url here', Strm);
        finally
            Strm.Free;
        end;
    end;

But my image is in a TMemoryStream and not in a file. How can do it

Thanks

Replies