[ 
https://issues.apache.org/jira/browse/WICKET-807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jean-Baptiste Quenot reassigned WICKET-807:
-------------------------------------------

    Assignee: Jean-Baptiste Quenot

> MockHttpServletRequest.addFile does not work with binary files
> --------------------------------------------------------------
>
>                 Key: WICKET-807
>                 URL: https://issues.apache.org/jira/browse/WICKET-807
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.2.6
>            Reporter: Mike Perham
>            Assignee: Jean-Baptiste Quenot
>             Fix For: 1.3.0-beta4
>
>
> http://www.nabble.com/Uploading-binary-files-via-MockHttpServletRequest-tf4192893.html#a11934991
> As stated in the thread, I can upload text (xml) files just fine but binary 
> data does not work.  I suspect there are some encoding issues which cause the 
> binary data to be corrupted.  buildRequest() looks like it is corrupting the 
> binary data when it pushes the data into String format.  I don't think this 
> is right - you should treat the request as a byte array, not a String.  I 
> think the MIME or HTTP RFCs might have more info on how binary data is 
> supposed to be packaged within an HTTP request.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to