Hi,
Thanks in advance for any help and/or advice.
I have a
Servlet and a
Java Swing client.
I want to upload a zip file to the Servlet. However, along with the zip file, i also need to send some XML.
I have 2 questions:
1)
To deal with the zip file upload i am using
How do i connect to this from my client, can i use a BufferedOutputStream to write zip file bytes?
2)
How can i send XML and binary data at the same time? XML Content-Type i have as:
and for the zip file (that needs to connect to ServletFileUpload) i have:
... is it enough to just write the XML using the same buffer, before closing?
Many thanks for your help.
Regards, sam