Reputation: 1732
I am trying to find a way to serialize MS Office objects in some way so I can send them to other Java clients without the need of the actual file.
For example, I have one client with a MS Word Document within object A. I can already write out and represent object A as an XML, but I want to now have object A's XML contain a serialization of the MS Word Document.
Is this possible with any existing libraries? I am looking at Apache POI, but have not used it for this purpose. I have only used it to read and write Office objects.
EDIT: See the answer I posted for how I was able to achieve this by using Base64 encode and decode.
Upvotes: 0
Views: 468
Reputation: 1732
Credit to Gagravarr for the idea, I ended up using Apache commons to base64 encode and decode the file. I followed the example in this link.
Upvotes: 1