File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Head First Android this week in the Android forum!
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: 42956
    
  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: 42956
    
  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?
 
It's not a secret anymore!