Error in Uploading a text file using com.oreilly.MiltipartRequest Package.

cyin003 (Jerry)
本文发表在 rolia.net/zh 相约加拿大网上社区枫下论坛
Hi Jabber!

I use an ISS server + Resin( supporting API2.2 ). I need to upload a text format file and populate data into database. I just follow the sample code provided by www.servlets.com to do it. ButI have a problem exactly same as another one who put a message on a bbs today:
I am trying to uplaod a file using com.oreilly.MiltipartRequest Package.

But when i am uploading any file it is giving me the java.io.IOException: Corrupt form data : no leading boundary

i tried to print the boundary it is :
boundary=---------------------------7d11c22c748,multipart/form- data; boundary=---------------------------
7d11c22c748,multipart/form-data; boundary=-----------------------

Can anyone tell that why my boundary is repeating three times is, it normal and if it is allright then why i am getting the error of "Corrupt form data : no leading boundary"

I am using IE 5.5,and jsdk2.0.

Is there any other method to upload a file?

Do you have any idea about this?
更多精彩文章及讨论,请光临枫下论坛. 网址: rolia.net/zh
2001-2-23 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: I don't want browser remembering user name and password. What should I do? ( I am writing Java Servlet code ).

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论