Hi guys,

I need to get your expert help in File Upload Servlet. I created a file
upload servlet that takes ServletInputStream to read and use OutputStream to
write to a file.

My problem is, everytime I write the file I got from user, it keeps adding
another line into the uploaded file.
I think the new line is either \c character or \r\n from windows.

For example:
Original file:
------------------ File Start ( not the content of the filem just indicator
)
Hello this is the file
wel come to my file
------------------ File End ( not the content of the filem just indicator )

will become like this after upload:
------------------ ( not the content of the filem just indicator )
Hello this is the file
wel come to my file

------------------ ( not the content of the filem just indicator )

Does anyone knows how I can eliminate this problem?

Thanks
Rendra Basuki

___________________________________________________________________________
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