My requirement is as follows.I will give any input / upload.(For example,it could be word

/ PDF / JPEG / any scanned image / PPT /PST / any.......)and the given input should convert to

Binary format.
And from that, it should convert to XML.(Which is used for transforming between systems /

Again from the XML , i should be able to convert back to Binary file and from that i

should be able to convert it to its original format.(i.e) Word / excel / PDF /.....

How can i acheive this in Java / J2EE.
Kindly help me out.Source code / Any suugestion is really appreciated.

Expecting is the convertion part (i.e)given input to Binary and from there to XML and vice versa.