Add a binary file to an existing form, then post

"Dodgshun, Andrew (Melb, Aust)" <[email protected]>
Newsgroups gmane.comp.lib.libwww
Message-ID <253D3D7BADAED3118B15009027D6185E8A394C@brewery>
Hello,
How can I add a binary file to a form that is loaded say via HTLoadtoChunk
then post that form ?
 
Essentially I wish to automate the posting of a local file via this form.
 
The form is .....
 
<form enctype="multipart/form-data"" method="POST" ACTION="/forms/Upload">
<input type="file" name="file"
<input type="submit" name="submit" value="submit">
</form>
 
I thought perhaps I need to create a HTAssocList from this form and then set
the value of "file" to my binary file
but not sure if I am on the right track ??
 
(environment is C UNIX solaris )
 
...regards 
Andrew Dodgshun
Developer
eiStream (Australia) Pty Ltd
http://www.eistream.com.au <http://www.eistream.com.au/> 
*******************************************************************
This email (including all attachments) is intended solely for the named
addressee. It is confidential and may be subject to legal or other
professional privilege. If you receive it in error, please let us know by
reply email, delete it from your system and destroy any copies.This email is
also subject to copyright. No part of it should be reproduced, adapted or
communicated without the written consent of the copyright owner.E-mails may
be interfered with, may contain computer viruses or other defects and may
not be successfully replicated on other systems. We give no warranties in
relation to these matters. If you have any doubts about the authenticity of
an email purportedly sent by us, please contact us immediately. Any
confidentiality or privilege is not waived or lost because this email has
been sent to you by mistake.
*******************************************************************
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.