0

I want to convert XML into binary data in Java? What is the fastest and easiest way to do this?

Is there any internal Java method that I can use?

Matt
  • 74,352
  • 26
  • 153
  • 180
user1285928
  • 1,328
  • 29
  • 98
  • 147

1 Answers1

1

If you want to just compress the xml then you can read it and use either GZIPOutputStream or ZipOutputstream as described here.

Community
  • 1
  • 1
plasma147
  • 2,191
  • 21
  • 35