What's the mime type?
-- E
On Tuesday, November 11, 2014 6:50:42 AM UTC-5, Ijaja wrote:
On Tuesday, November 11, 2014 6:50:42 AM UTC-5, Ijaja wrote:
Hi,
i have implemented a file download in a gwt application.
Therefore i do a
Window.Location.assign(url); on client side with the right url to a target.
This performs a get reuqest with the context and path as desired and reaches my own implemented HttpServlet.
This sets a response header:
...
response.setHeader("Content-Length", contentLength);
response.setHeader("Content-Type", mimeType);
response.setHeader("Content-Disposition", "attachment;filename=\"" + fileName + "\"");
...
and writes all data to the outputstream.
This works perfect on any browser i have testet on any desktop machine.
However it seems not to work on a mobile phones browser (tested with android chrome).
Here i get a connection reset by peer on the attempt to write the content to the outputstream.
On the client side i cannot see any problems. Android reports to do a download which stays visible in the generic messages region.
Only after a long time it says, that the download failed. the reset by peer problem on server side appears immediately.
I haven't yet checked, which time exactly on writing this happens, i.e. whether he already successfully wrote some data to it.
Any ideas already about that problem?
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+unsubscribe@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.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment