Jens Wolinder wrote:
>
> hi,
> problem......I'm writing a servlet which is suppose to handle downloads
> of images....the problem I have is getting the servlet to download more
> than 1 file to the client...... what happens right now if I send more than 1
> file to the servlet is that he will respond with downloading 1 file to the
> client only the size of that file is the same as the size of all the files I
> give him added up....... I�ve tried everything..... do I need to create a new
> servlet-response for each file??? header settings??? HELP!!!

You need to check for boundary markers when you parse the POST body so
that you know where each file starts and ends. See RFC 1867, or one of
the many file upload servlets available on the net. You can search the
for references to examples in the archive for this list at the URL in
the signature of this mail.
--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to