commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Parchuri, Chad" <>
Subject Websphere and fileupload problem -- Error"Stream ended unexpected ly
Date Tue, 27 Jan 2004 21:48:59 GMT
I tried file upload in my local environment NT IE Browser 5.5, Websphere
Studio, which works fine. when I migrarted the code to SUN SOLARIS websphere
4.0 box, IE 5.5. i am getting the following error.

"Stream ended unexpectedly."

i could only upupload a file size of 6K

Any help will be highly appreciated. thanks

Here is the snippet of code, i am using.

			boolean isMultipart =
			// if not, send to message page with the error
				throw new OSNException("Request was
notmultipart, and cannot be uploaded. ", 3, "NO", "N/A");
			// now lets create a handler for the upload request.
			DiskFileUpload upload = new DiskFileUpload();
        	// maximum size that will be stored in memory
        	// the location for saving data that is larger than

			// parse this request by the handler
			// this gives us a list of items from the request
			List items = upload.parseRequest(req);

			// now iterate over this list
			Iterator itr = items.iterator();
	        long formDatalength = 0;
				FileItem item = (FileItem);
					byte[] dataByte = item.get();
					TopicImageImpl topicImageImpl =

This e-mail and any files transmitted with it may contain privileged or 
confidential information. It is solely for use by the individual for whom 
it is intended, even if addressed incorrectly. If you received this e-mail 
in error, please notify the sender; do not disclose, copy, distribute, or 
take any action in reliance on the contents of this information; and delete 
it from your system. Any other use of this e-mail is prohibited. Thank you 
for your compliance.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message