TomBarrand
Programmer
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
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