File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other JSE/JEE APIs and the fly likes java mail excel attachment problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "java mail excel attachment problem" Watch "java mail excel attachment problem" New topic

java mail excel attachment problem

sid sid

Joined: Nov 09, 2005
Posts: 2

I want to send an attachments with an Excel File. I have no problem to send the message. Then I compose the same message with outlook with the same excel file like attachment but when I compare the two files there are differences (the excel file send by outlook have a different size, it's a little more big).

Somebody know why?

Thank you.

Ashu Sindhu

Joined: Nov 04, 2005
Posts: 5

The files should be of same size. As long as you are able to open the file successfully ..its fine.

However, ur windows shows the amount of space it taking rather than the actual size of the file. You should check the actual size of the file by seeing it properties (right click the file and properties... do not see the size on disk ) ...

Let us know if the size of file is same or not .

Ashu Sindhu
sid sid

Joined: Nov 09, 2005
Posts: 2
When I send and XML file or a TXT file the sended files are the same size. The problem is only with the attached excel files. This is an example of my problem:

Excel file sended with my application:
size: 50�688 bytes
size on disk: 53�248 bytes

Excel file sended with outlook:
size: 53 248 bytes
size on disk: 53 248 bytes

Original file:
size: 50 688 bytes
size on disk: 53 248 bytes
Don't get me started about those stupid light bulbs.
subject: java mail excel attachment problem
Similar Threads
print Screen from a jsp
JavaMail:Why can't a recipient using Lotus Notes see the attachment of my mail
Sending meeting requests using Java Mail API
Force client application to open download
Linux, Xemacs and Cattle Drive Assignments