wood burning stoves 2.0*
The moose likes JDBC and the fly likes How to insert xml object with out creating file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to insert xml object with out creating file?" Watch "How to insert xml object with out creating file?" New topic
Author

How to insert xml object with out creating file?

Raghu Sha
Ranch Hand

Joined: Feb 02, 2013
Posts: 122
Hi,
In Oracle, how to insert xml object ?
I am using CLOB datatype.
Currently generated xml content as xml file, store that file in drive.




How to store XML content without creating xml file?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41867
    
  63
The general flow could be StreamResult -> ByteArrayOutputStream -> byte[] -> ByteArrayInputStream -> InputStreamreader -> setClob. You need to make sure to use the correct encoding along the way.


Ping & DNS - my free Android networking tools app
Raghu Sha
Ranch Hand

Joined: Feb 02, 2013
Posts: 122
Thanks..

Please provide sample code or url to refer
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41867
    
  63
Which part of what I said is unclear?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to insert xml object with out creating file?