dcsimg
I want a read huge XMl data from oracle to java
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   kaladhar_v
Posted On:   Wednesday, January 21, 2004 09:03 PM

In my java application i want to read a huge XML data from oracle, that xml size can more than 25 MB. I am doing in the following way

Code--
br = new BufferedReader(cClob.getCharacterStream());
while ((strOutValue = br.readLine()) != null) {
strBuffer.append(strOutValue);
}

My string buffer is not able to accomidate i am getting out of memory error.

please suggest me a good solution, i dont want to increase my heap size using some commands.

Re: I want a read huge XMl data from oracle to java

Posted By:   Simon_Ablett  
Posted On:   Thursday, January 22, 2004 05:42 AM

Write the data out to a file instead of trying to hold it all in memory. Either that or increase the amount of space available on the heap.

Regards.
About | Sitemap | Contact