Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem Saving Excel File Using JavaMail

Status
Not open for further replies.

TomBarrand

Programmer
Aug 9, 2000
162
0
0
GB
Hi,

I am using JavaMail and IMAP to get an Excel file that is attached to an email and save the file to the file system. Using simple Excel files this works fine. I have a more complex Excel file with Marcos in it, when you try and open the file in Excel it says the file is corrupt and can not be opened.

I have used the msgshow example that ships with JavaMail. Could anyone confirm if this is a bug and how to work around it?

The following error is generated:

java.io.IOException: Error in encoded stream: needed 4 valid base64 characters but only got 2 before EOF, the 10 most recent characters were: "AAAAAAAAAA"

Many Thanks

Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top