MIME-encoded file creation in Java -
just learning purpose want create mime type file. there java api available create file? want embed pkcs7 response in file.
content-type: multipart/mixed; boundary="=_1_1440399813_23993" content-transfer-encoding: 8bit mime-formatted message. if see text means e-mail software not support mime-formatted messages. --=_1_1440399813_23993 content-disposition: attachment; filename=hello.pdf content-type: application/pdf content-transfer-encoding: base64 mmdawmcbuiaowmdawmda1mzuwidawmdawig4g cnryywlszxikpdwvu2l6zsaxnc9sb290ideyidagugovsw5mbyaxmyawifikl0leifsgpdzcqjnd qzhcotkyndmxmkixmezdoui1mjm3neqzodyypgo8nkjcm0ndoei5oti0mzeyqjewrkm5qjuymzc0 rdm4nji+if0kl0rvy0nozwnrc3vtic9fnujgndq1nenfruy4rdk0rjngrdm4nuu5ntfeoerbnao+ pgpzdgfydhhyzwykntuynqoljuvprgo= --=_1_1440399813_23993 content-disposition: attachment; filename=hello.pdf.p7s content-type: application/pkcs7-mime content-transfer-encoding: base64 lxbtj3ffg7ss7fxsq/psbhybtlldz9k1 mmmmcygsi6+jmfbqj/vu50l79qtq3tgfmxh8giowqpiih6c4/u29t6yzibfktqis1vrwionm9ocx wlrp70y9xepc/l+hybeuujfncnssxvo1atgygli4gdxu2jc1wtonuqvmnbsttq2r27sim9etkjyw jruroe5lbmtq6rxgzwdb8bnqxjvqhmoqodmxj161mz/jxbtewhcldukggog29nefze/ybq25fyu8 k01tvuxjj1eanvzqwfvaoqomr6w1/hgsxb3s7a== --=_1_1440399813_23993--
is there api availabe create type of file? can give extension file? new in area.
you should able use java mail api this. (http://www.oracle.com/technetwork/java/javamail/index-141777.html)
but experience api no fun use , long want encode several files 1 mime message might easier encode yourself.
some frameworks spring (org.springframework.mail.*) build wrappers around java mail, make easier use.
Comments
Post a Comment