E
eunever32
Hi
I am trying to obtain the attachment from an encrypted email.
The content when I decrypt looks like below.
How can I cast this to a MimeMultipart ?
The content after I decrypt is a ByteArrayInputStream
decryptedContent = envelopedBodyPart.getUnencryptedContent( cert,
privateKey );
(I am using com.isnetworks EnvelopedBodyPart.getUnencrypted.)
The message is decrypting correctly as below but I am not getting the
MimeMultipart that would allow me to get the attachment correctly.
Thanks in advance.
This is a multipart message in MIME format.
--=_mixed 00561CF28025770E_=
Content-Type: multipart/alternative; boundary="=_alternative
00561CF28025770E_="
--=_alternative 00561CF28025770E_=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: base64
--=_alternative 00561CF28025770E_=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: base64
DQo=
--=_alternative 00561CF28025770E_=--
--=_mixed 00561CF28025770E_=
Content-Type: text/plain; name="file100.txt"
Content-Disposition: attachment; filename="file100.txt"
Content-Transfer-Encoding: quoted-printable
etc
I am trying to obtain the attachment from an encrypted email.
The content when I decrypt looks like below.
How can I cast this to a MimeMultipart ?
The content after I decrypt is a ByteArrayInputStream
decryptedContent = envelopedBodyPart.getUnencryptedContent( cert,
privateKey );
(I am using com.isnetworks EnvelopedBodyPart.getUnencrypted.)
The message is decrypting correctly as below but I am not getting the
MimeMultipart that would allow me to get the attachment correctly.
Thanks in advance.
This is a multipart message in MIME format.
--=_mixed 00561CF28025770E_=
Content-Type: multipart/alternative; boundary="=_alternative
00561CF28025770E_="
--=_alternative 00561CF28025770E_=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: base64
--=_alternative 00561CF28025770E_=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: base64
DQo=
--=_alternative 00561CF28025770E_=--
--=_mixed 00561CF28025770E_=
Content-Type: text/plain; name="file100.txt"
Content-Disposition: attachment; filename="file100.txt"
Content-Transfer-Encoding: quoted-printable
etc