It seems to be a difference between using binary mode and text mode.

Ing Carlos Carvajal wrote:
>
> i am developing a mail system whit javamail, when i upload a file (pdf especially) 
>this file
> like (in hex) :
>
> 25 50 44 46 2D 31 2E 30 20 0D 31 31 20 30 20 6F
> 62 6A 0D 3C 3C 0D 2F 46 69 6C 74 65 72 20 5B 20
> 2F 41 53 43 49 49 38 35 44 65 63 6F 64 65 20 2F
>
> but, when i download this file see:
>
> 25 50 44 46 2D 31 2E 30 20 0D 0A 31 31 20 30 20
> 6F 62 6A 0D 3C 3C 0D 0A 2F 46 69 6C 74 65 72 20
> 5B 20 2F 41 53 43 49 49 38 35 44 65 63 6F 64 65
> 20 2F
>
> add 0A after each OD, in oteh words, add '\r' after
> '\n'
>
> this is a propblem the servlets, or javamail?
>
> I try whit varios methods whit the same result
> (websmtp)
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to