how to fix ArgumentOutOfRangeException in a string
while((read = stream.Read(buffer, total, 1000)) != 0) Full text of the method:
private void getFrame() { string sourceURL = "https://geocam.tv/streamer/2222.mjpg"; byte[] buffer = new byte[1280 * 800]; int read, total = 0; HttpWebRequest req = (HttpWebRequest)WebRequest.Create(sourceURL); WebResponse resp = req.GetResponse(); Stream stream = resp.GetResponseStream(); while((read = stream.Read(buffer, total, 1000)) != 0) { total += read; } Bitmap bmp = (Bitmap)Bitmap.FromStream(new MemoryStream(buffer, 0, total)); pictureBox1.Image = bmp; } I want to broadcast videos from https://geocam.tv/streamer/2222.mjpg
Lengthcheck - Grundy