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=24465>. 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=24465 FormFile should decode automatically or at least provide a method getTransferEncoding() Summary: FormFile should decode automatically or at least provide a method getTransferEncoding() Product: Struts Version: 1.0 Final Platform: Other URL: http://marc.theaimsgroup.com/?l=struts- user&m=106018718803423&w=2 OS/Version: Other Status: NEW Severity: Enhancement Priority: Other Component: File Upload AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] >From some browsers, my struts FormFile is not receiving binary files, but encoded for example as below. <<------------ThIs_Is_tHe_bouNdaRY_$ Content-Disposition: form-data; name="file"; filename="google.png" Content-Transfer-Encoding: base64 Content-Type: image/png iVBORw0KGgoAAAANSUhEUgAAABAAAAAaCAIAAAAxCktQAAAB30lEQVR4nGP8//8/AymAiSTVw0QD Cxr/378/H1+dZvhxh4/z87c/Qj8YVAREtVnZOOEKGJGD9c2Laz8ftn74wskqYPb92zfmL7vVpR58 ...>> On the receiving side in struts, I can determine the "image/png" with the getContentType() method, but the transfer encoding is a problem. Solution proposals: 1) have struts decode which ever valid MIME transfer encoding it gets to the standard binary format -- or at least 2) provide a method to learn what encoding was received in the header such that I can decode it myself in Java. P.S.: The above URL is the only reference to the encoding I found, but it appears to use a proprietary abn amro FormFile implementation :( --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]