<HTML>
<HEAD>
<TITLE>Re: How to post a GIF file to an HTTP server</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:14.0px'>Rudolf Coetsee puso en su mail :<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><FONT SIZE="4"><SPAN STYLE='font-size:16.0px'>Hi<BR>
&nbsp;<BR>
I would like to post a GIF file to a server using the &quot;httpPost&quot; method of the &quot;HTTPSocket&quot; class in Squeak. Can anyone please send me a code snippet on how this works. I think I have to somehow put the contents of the image file into the &quot;argsDict&quot; object, but I am not sure whether I should encode the contents first or not. If I have to encode it, is there a method I can use already in Squeak? <BR>
&nbsp;<BR>
Thanks in advance<BR>
&nbsp;<BR>
RUDOLF COETSEE <BR>
<BR>
</SPAN></FONT><SPAN STYLE='font-size:14.0px'>Rudolf :<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><FONT SIZE="4"><SPAN STYLE='font-size:16.0px'>See Form </SPAN></FONT><SPAN STYLE='font-size:14.0px'>asWebImage, could be what you need<BR>
</SPAN><FONT SIZE="4"><SPAN STYLE='font-size:16.0px'><BR>
</SPAN></FONT><SPAN STYLE='font-size:14.0px'>asWebImage<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&quot;return a MIMEDocument&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;| aStream |<BR>
&nbsp;&nbsp;&nbsp;&nbsp;aStream := RWBinaryOrTextStream on: ''.<BR>
&nbsp;&nbsp;&nbsp;&nbsp;GIFReadWriter<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;putForm: (self asFormOfDepth: 8)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onStream: aStream.<BR>
&nbsp;&nbsp;&nbsp;&nbsp;aStream reset.<BR>
&nbsp;&nbsp;&nbsp;&nbsp;^ MIMEDocument contentType: MIMEDocument contentTypeGif content: aStream</SPAN></FONT>
</BODY>
</HTML>