• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic