Hi Good Morning,
when i am writing response string to output stream. its taking long time. my string contains xml data. that xml data may in size of 5kb to 50mb.
please tell me the best efficient way to write large xml strings into output stream.
string size 1.3 mb then its take 59.4 seconds.(out.write(otaRSBytes)--> line no : 6)
flush time : 4.3 seconds (out.flush(); ---> line no : 7)
code in myservlet:
1. String otaRS = "xml string"; // large string
2. byte otaRSBytes = otaRS.getBytes();
5 out = response.getOutputStream();
// taking long time.
its very urgent.
Thank You In Adavnce.
Closing this one. You now have 3 topics discussing this same issue. Please do not create duplicate topics, especially when you already have received replies from other members in one of your thread. It's just rude to abandon a thread and open a new one asking the same question.