Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. private MemoryStream video = new MemoryStream();
  2.  
  3. private void OutputDataHandler(object sendingProcess, DataReceivedEventArgs outLine)
  4. {
  5. // Collect the net view command output.
  6. if (!String.IsNullOrEmpty(outLine.Data))
  7. {
  8. byte [] bytes = new byte[outLine.Data.Length];
  9.  
  10. System.Buffer.BlockCopy(outLine.Data.ToCharArray(), 0, bytes, 0, bytes.Length);
  11.  
  12. video.Write(bytes, 0, bytes.Length);
  13. }
  14. }
  15.  
  16. File.WriteAllBytes(@"C:\temp\test\test2.webm", video.ToArray()); // this results in a webm chrome opens but its blank small doesnt play
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement