This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in download file (pdf or xls) using DownloadAction class  RSS feed

 
Harish V Gupta
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, I am trying to download a file using DownloadAction class. It's not throwing any error. I am able to download the file but the downloaded file is being shown empty. For using DownloadAction class we need to extend it and implement getStreamInfo method. I am not extending my action class directly but I am instantiating a class in my action class which, in turn, is extending DownloadAction class and defining getStreamInfo function. Can this be a problem? I am using the following code snippet for downloading :

 
Nam Ha Minh
Ranch Hand
Posts: 515
Eclipse IDE Firefox Browser Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you solved your problem?
It requires to see your DownloadAction class with its action method, plus FileStreamInfo class.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!