Have an envelope that I’m passing through a socket. Like
<task>
<doc>
This is the contents of a file
</doc>
</task>
Works great with text docs using a pattern like “<doc>(.*?)</doc>“, Pattern.DOTALL
but put the contents of a word doc in there and can’t get it out.
Any Ideas?
Jim
Encode the Word Doc in base64 and then put it into the xml wrapper.
Apache commons offers a decent encoder/decoder: http://commons.apache.org/codec/