• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to insert xml object with out creating file?

 
Raghu Sha
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks..

Please provide sample code or url to refer
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which part of what I said is unclear?
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!