Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
How do i convert video file into byte array and back byte array into video file.give me code.
Posted
Comments
navin ks 7-Jan-14 0:31am    
take this *code*

1 solution

Please check the following link you will get the code.
how to convert video to byte array in c#[^]
How to convert byte[] to Vedio type(.avi)[^]
 
Share this answer
 
v2
Comments
Pramod Karale 7-Jan-14 7:05am    
using (Stream s = new MemoryStream(bytes))
{
System.Media.SoundPlayer myPlayer = new System.Media.SoundPlayer(s);
myPlayer.Play();//generate error here as :the wave header is corrupt.
}
i used the code specified at link provided by you>>How to convert byte[] to Vedio type(.avi)
but it gives error at "myPlayer.Play();"-->>>the wave header is corrupt.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900