1
Reply

What is Video Streaming in .net??

varsha k

varsha k

12y
3.1k
0
Reply

    You're reading the entire file into a single buffer, then sending the entire byte array at once.You should read into a smaller buffer in a while loop.For example:byte[] buffer = new byte[4096];while(true) {int bytesRead = myStream.Read(buffer, 0, buffer.Length);if (bytesRead == 0) break;Response.OutputStream.Write(buffer, 0, bytesRead); }