wood burning stoves 2.0*
The moose likes I/O and Streams and the fly likes WebApplicationException thrown when trying to stream download file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "WebApplicationException thrown when trying to stream download file" Watch "WebApplicationException thrown when trying to stream download file" New topic
Author

WebApplicationException thrown when trying to stream download file

Pauline McCall
Greenhorn

Joined: Nov 10, 2011
Posts: 2
I am accessing a URL that downloads an xls file. I had code that saved it first, then streamed it to the user via Desktop.getDesktop().open(file);

However, I now would prefer to do it in the one step, access the file and stream it straight to the user. I have updated my code but everytime it downloads the file, I get this output:
WARN o.a.c.j.i.WebApplicationExceptionMapper - WebApplicationException has been caught : no cause is available

This is my code:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WebApplicationException thrown when trying to stream download file