• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

File size restriction in struts managed download

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I wanted to include a feature in my project where java objects are exported to an excel file and transfered to the requesting user. The entire download function is handled by struts. The struts snip that does the job is

In the action class i use poi to export java objects to excel and create byte array input stream and assign it to inputStream which has an associated getter method.
Issue: IE fails to download the file when its size is > 206 KB (to be somewhat precise). Firefox downloads but says the file is corrupt. Chrome has no complaint and the file is opened correctly. I am unable to figure out the root cause. It will be great if someone can help me out.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic