Click here to Skip to main content
16,020,249 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to convert the audio ,video file to binary format and store in array
Posted
Updated 17-Dec-11 0:01am
v2

1 solution

You can read any file and store in a byte array as follows:
C#
byte[] bytes = File.ReadAllBytes("filename.ext");
 
Share this answer
 
v2
Comments
Amir Mahfoozi 17-Dec-11 6:43am    
+5
Mehdi Gholam 17-Dec-11 7:04am    
Thanks
Sergey Alexandrovich Kryukov 17-Dec-11 23:38pm    
Simple, isn't it? My 5. I would simply say: "Audio, video file is already in binary format; any other file, too. There is no such thing as 'non-binary format'".
--SA
Mehdi Gholam 18-Dec-11 2:07am    
I love one liners, thanks :)
Aung Lwin Oo 26-Mar-12 1:36am    
Can you help me?

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