Base64 encoding/decoding of text, images, etc using java mail tools
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Roberto_Gagliardi
Posted On:   Thursday, June 7, 2001 01:41 AM

Hi. This would be my goal: read some content from a file (for example a xx.txt or a yy.jpg, zz.gif etc)- encode the content in BASE64 - store the encoded content in a DB - get the content from the DB - decode the content - rebuild the object (text file, image, etc.).
I would like to use java mail stuff since it represent Sun standard. I have tried with MimeUtility.encode method but it seems to have effect only with text while with images has problems (not errors but bad encoding). Anyone could help me? Maybe with an example of correct use of this tools?

About | Sitemap | Contact