Hi,
Try this:
byte [] respBuffer = new byte[1024];
try
{
int bytesRead = responseStream.Read(respbuffer,0,respBuffer.Length);
if(bytesRead > 0)
{
memStream.Write(respBuffer,0,bytesRead);
bytesRead = responseStream.Read(respBuffer,0,respBuffer.Length);
}
}
catch(Exception ex)
{
}
finally
{
responseStream.Close();
webResponse.Close();
}
And also view the
similar thread[
^].
--Amit