• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

File size restriction in struts managed download

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic