Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

WebApplicationException thrown when trying to stream download file  RSS feed

Pauline McCall
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!