DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25131>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25131 FormFile getInputStream strange behaviour on os/390 Summary: FormFile getInputStream strange behaviour on os/390 Product: Struts Version: 1.0.2 Final Platform: Other OS/Version: OS/400 Status: NEW Severity: Normal Priority: Other Component: File Upload AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Hi. I'm trying to upload a file using the FormFile class from struts version 1.0.2 in Websphere 4 under os/400 (Mainframe). As the os uses the IBM-1047 Encoding (EBCDIC) I have to read the InputStream obtained from the FormFile (the file is ascii) using an InputStreamReader with the encoding 8859_1. So the file can be read rightly but, the last line is -----------------------------7d323e1b180430-- which reminds me some multipart boundary. Can it be a struts issue? Thank you Alessio Sarcinelli The code is : inputStream = formFile.getInputStream(); char[] charArray = new char[inputStream.available()]; InputStreamReader reader = new InputStreamReader(inputStream, "8859_1"); reader.read(charArray); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]