Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

From Document Object to a byte array

 
e vanduffel
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey guys,
i got the following issue to tackle:
I receive a xml as a byte of arrays. I manage to make a Document object
of this byte array.
Now the sending application wants a byte array back...
How do I create a byte array from Document object??

thanks,
Wout
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is converting Document object to String to ByteArray healthy ?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Balaji Loganathan:
Is converting Document object to String to ByteArray healthy ?
Why would the String-step be needed?
 
e vanduffel
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the solution...
it really works out,
but unfortunatally the client has SDK 1.3.1...
And the solution provided is not supported...

So the search continues...
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thats make sense Lasse.
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by e vanduffel:
[QB]Thanks for the solution...
it really works out,
but unfortunatally the client has SDK 1.3.1...
And the solution provided is not supported...
QB]

Is it possible for you to ship/install the latest xerces parser on the your client side ? if so the above code by Lasse will work.
 
e vanduffel
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I download it some where?
greetz,
Wout
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic