aspose file tools*
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
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "java mail excel attachment problem" Watch "java mail excel attachment problem" New topic
Author

java mail excel attachment problem

sid sid
Greenhorn

Joined: Nov 09, 2005
Posts: 2
Hi,

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.

Siddharta
Ashu Sindhu
Greenhorn

Joined: Nov 04, 2005
Posts: 5
Sid,

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 .

thanks,
Ashu Sindhu
sid sid
Greenhorn

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
 
 
subject: java mail excel attachment problem