| Author |
Binary Data in XML
|
Allan Moster
Ranch Hand
Joined: Sep 14, 2001
Posts: 153
|
|
|
Can I embed binary data in an XML document? If yes, how does this differ from including text?
|
 |
Poonam Akash
Ranch Hand
Joined: Jul 26, 2001
Posts: 100
|
|
Hi Alan, Yeah u could embed a binary data in XML but not directly rather u should do it indirectly. As i read in an article
To send the binary data as part of XML document, it needs to be encoded using Base64 encoding scheme as there is no XML-encoding that allows raw binary data inside the XML-file, so it has to be encoded in some way..
Bye, Poonam, SCJP2.
|
Poonam Akash,<br />Sun Certified Java Programmer,<br />Sun Certified Web Component Developer.<br />Good luck may be an opportunity that keep the door open,BUT hardwork always keeps the door open!!
|
 |
Allan Moster
Ranch Hand
Joined: Sep 14, 2001
Posts: 153
|
|
|
My question is can i embed an external binary data such as GIF or JPEG.
|
 |
Poonam Akash
Ranch Hand
Joined: Jul 26, 2001
Posts: 100
|
|
Dear Allan, My answer for ur question is YES! And for that you can use the Microsoft XML Parser DLL (MSXML.DLL or MSXML2.DLL or MSXML3.DLL). Bye, Poonam, SCJP2.
|
 |
Allan Moster
Ranch Hand
Joined: Sep 14, 2001
Posts: 153
|
|
|
It's not possible to have a parser interpret the binary content inside an XML document. I tried it! It generated an error and failed to process the document.
|
 |
James Swan
Ranch Hand
Joined: Jun 26, 2001
Posts: 403
|
|
Have a look at this article. I haven't looked into it in depth but it might be what you are looking for. http://www.javaworld.com/javaworld/javatips/jw-javatip117.html? James.
|
 |
 |
|
|
subject: Binary Data in XML
|
|
|