Hi,
Try this...
//create request for song and return stream of data
HttpWebRequest webReq = (HttpWebRequest)WebRequest
HttpWebResponse webResponse = (HttpWebResponse)webReq.Ge
Stream songStream = webResponse.GetResponseStr
//prepare our response stream
Response.ClearHeaders();
Response.ClearContent();
Response.ContentType = "application/octet-stream"
Response.AddHeader("Conten
byte[] data= new byte[1024] ;
int status;
status=songStream.Read(dat
while (status > 0)
{
Response.OutputStream.Writ
status=songStream.Read(dat
}
songStream.Close();
webResponse.Close();
Response.End();
Madhevan
Main Topics
Browse All Topics





by: AzraSoundPosted on 2006-12-19 at 16:40:32ID: 18170350
Seems like it was due to trying to do a single Read to get all the data in one chunk. I used the ReadFully method outlined at the following link and it now works:
om/csharp/ readbinary .html
http://www.yoda.arachsys.c