|
Loading...
|
javamail-interest@java.sun.com
[Prev] Thread [Next] | [Prev] Date [Next]
Re: Attachment doubles in size when saved (encoding problem) Henrik Martin Mon Jul 23 12:00:49 2007
Mystery resolved. I was using an old version of mail.jar. I could swear that I installed the latest one from Sun, but I must have somehow forgotten to install it. User error. /Henrik On Thursday 19 July 2007 22:06, Henrik Martin wrote: > Thanks for the response. I will look at the methods you mentioned. > I'm still confused as to why the code works on one machine and not the > other. I'm even sending the exact same attachment and on one machine > it gets saved as roughly 8KB and on the other as something like 14KB. > Both boxes are running Linux, Java 5 (JDK 1.5.0_11), and Tomcat 5.5.20. > I'm using the latest mail.jar and activation.jar files from Sun's site. > Do you think that the troublesome box could have an old version of the > JAF jar file lying around somewhere? Are there any properties files > involved that I should be looking at? Thanks, > > /Henrik > > On Thursday 19 July 2007 20:43, Bill Shannon wrote: > > > Basically, you're doing the right thing (although you might want to > > look at the isMimeType and saveFile methods). You can certainly count > > how many bytes you write in both cases and compare the numbers, and > > compare them against the size of the file that you create. Since you're > > reading and writing binary data, the charset shouldn't matter. > > > > Oh, and if you're at all uncertain about your code, use the msgshow.java > > demo program to read and save the attachment and compare its results > > with yours. > > > > =========================================================================== > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > > of the message "signoff JAVAMAIL-INTEREST". For general help, send email to > > [EMAIL PROTECTED] and include in the body of the message "help". > > > > =========================================================================== > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff JAVAMAIL-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". > =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVAMAIL-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
- Attachment doubles in size when saved (encoding problem) Henrik Martin 2007/07/23
- Re: Attachment doubles in size when saved (encoding problem) Bill Shannon 2007/07/23
- Re: Attachment doubles in size when saved (encoding problem) Henrik Martin 2007/07/23
- Re: Attachment doubles in size when saved (encoding problem) Henrik Martin 2007/07/23 <=
- Re: Attachment doubles in size when saved (encoding problem) Bill Shannon 2007/07/23
- Re: Attachment doubles in size when saved (encoding problem) Bill Shannon 2007/07/23
- Namespace question.... Devin A Lindsey 2007/07/26
- Re: Namespace question.... Bill Shannon 2007/07/26