You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/12/02 11:11:32 UTC
DO NOT REPLY [Bug 25131] New: -
FormFile getInputStream strange behaviour on os/390
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: struts-dev@jakarta.apache.org
ReportedBy: uonder@inwind.it
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: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org