Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Division of large packets recieved into chunks of 4096 bytes
#1
Hi all,
I am developing a web application that communicates with Web Service using SOAP.
I have got a web page that needs to display the log file which is around 2 mb in size, in a text area.
SOAP protocol carries the response with full log file information to the web client. But the firefox is displaying just 4096 bytes of the data received.. The reason for this is, Firefox or Mozilla divides the packets received with size greater thn 4096 bytes in to an array with each array element size being 4096 bytes.
This problem doesn't exist in IE. It displays the entire log page at one shot..
I tried to resolve this problem in javascript as follows :
i = 0;
var log_info = "";
try {
while(arrayElement[i] == 4096)
{
log_info = log_info + arrayElement[i++];
}
log_info = log_info + arrayElement[i];
} catch (exception e) {}
return log_info;

But this is creating delay in updating the log information in the browser text area.[Not in IE]
Is there any way to fix it, like , Is there any parameter which specifies the size of the chunks while dividing large data recieved, that can be dynamically set in javascript
Reply


Messages In This Thread
Division of large packets recieved into chunks of 4096 bytes - by shar_chan - 02-22-2007, 11:15 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)