Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

Serializing EmailMessage object to byte array

$
0
0
I am using EWS Java API to fetch email message from Exchange Server. I am getting it as EmailMessage class instance. This class is defined in EWS Java API and it extends other EWS API classes as follows:


Now I want to move those mails to ECM Documentum Content server without storing it locally. However the API for this server asks for ByteArrayOutputStream as a param to its import method. Thus I want to convert this EmailMessage object to ByteArrayOutputStream. But it seems that neither EmailObject nor any of its parent classes has implemented Serializable interface. So how can I serialize it to byte[] or to be precise to ByteArrayOutputStream?

Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>