This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases 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 and Relational Databases
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
Rancher

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

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

Please provide sample code or url to refer
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
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?
 
jQuery in Action, 3rd edition