Hi
I am using VC++ client to get the data from
servlet. This is the code i am using
public void doGet(...)
{
response.setBufferSize(20*1024)
BufferedOutputStream bos=new BufferedOutputStream(response.getOutputStream());
byte[] fileData=new byte[20*1024];
RandomAccessFile RAF = new RandomAccessFile ("xyz.avi", "r");
nBytestoWrite=RAF.read(fileData);
if(nBytestoWrite>-1)
{
bos.write(fileData,0,nBytestoWrite);
}
RAF.close();
}
When i am trying to get the data from VC++ client its showing like you have received 8KB only where as i am trying to get 20KB.
Thanks in advance
Prashanth