Convert xml data into binary data
How can i save xml data into binary field of data base tab开发者_开发百科le?
Do you need to reencode is as binary data? You should be able to save the XML data directly as raw data in the binary field. You'll have remember what character encoding you used when reloading the value if you're using a non-ascii character set.
For Java, you could convert XML to fast infoset. Glasfish has a subproject to do so.
Then it's just a matter of loading the result into a BLOB.
精彩评论