File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Excel size becomes large while creating excel file in jsp using content type

 
bhagyah
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I created an excel using jsp by setting content type as excel, the size of the excel is coming nearly around 5MB. If copy the content of that 5MB excel content and paste it and created another excel directly. The size of the new excel is coming around 1 MB.

It will be great if any body reply me as soon as possible.
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

You can't create XLS files using a JSP. I'm guessing that you're creating an HTML table that happens to be readable by Excel; correct? If so, it's no surprise that the data takes up much less space once it's in Excel, because all those HTML tags are gone.
[ October 08, 2008: Message edited by: Ulf Dittmer ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64182
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"bhagyah", please check your private messages for an important administrative matter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic