• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
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: 504
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