The only suggestion I could make is to not use RequestBuilder for binary 
data. Go down to the XMLHttpRequest level instead, with JSNI to send the 
Blob/File/ArrayBuffer/whatever (either JSNI, or use the 
elemental.xml.XMLHttpRequest instead of the 
com.google.gwt.xhr.client.XMLHttpRequest)

On Monday, February 25, 2013 12:40:48 PM UTC+1, Thomas Lefort wrote:
>
> I initially posted this question 
> <http://stackoverflow.com/questions/15033742/requestbuilder-with-file-data>on 
> SO, thinking that it was more something on HTTP headers, but I played with 
> http headers without success and I am now thinking it could be a 
> requestbuilder issue.
>
> Essentially, I am sending some (gzipped file) binary data read using the 
> HTML5 File Reader API to my server via a requestbuilder call. When I set 
> the setRequestData, the content is fine. I debug in all the way to the js 
> and the content is fine. However the server side payload received is much 
> larger 1.5 to 2 times the size of the content I set (the unzipped file is 
> 10x the size). Also the firebug payload (in the net tab) says it's 1.5-2 
> times the size. Looks as if when the actual ajax request is made, the 
> payload is somehow increased with additional data. I checked the payload 
> and the payload actually looks fine! It's as if the end of the message 
> cannot be found somehow. This only happens with binary data files, text 
> file is fine.
>
> All this is in dev mode.
>
> If anybody has the slightest idea or a suggestion to make?
>
> Thanks in advance,
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to