• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to insert xml object with out creating file?

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

Please provide sample code or url to refer
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which part of what I said is unclear?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic