View Single Post
Old 09-07-2005, 12:19 PM   #1 (permalink)
j.gohel
Code Monkey
 
Join Date: Apr 2005
Posts: 68
j.gohel is on a distinguished road
Reading chunks of data in a servlet???

Hello,

I have some data in a file which i have read in a byte array.

Now i am sending the data from that bytes array into small chunks say if file size is of 8443 KB then first i am sending the 8000 KB into chunks of 2000 KB & the remaining after writing that 8000 KB on the outputstream.

Now i am trying to read that small chunks of data into my servlet,it is throwing an exception:
java.net.SocketTimeoutException: Read timed out

So how should i read that data so that when the data is sent in small chunks it gets perfectly received .

Thanking you,
Jignesh
j.gohel is offline   Reply With Quote