How can I convert video files into byte arrays?
<p>I am doing a project where I want to upload a video to a server. The user can choose the file from the gallery. But the problem is that the user can choose any type of file format. So it causes problems. I want to convert the video file into a byte stream. I cannot find any helpful post over the internet. Can anyone guide me to the right way? I will make it much clearer.</p>

<ol>
<li>How can I read a video file into a byte array?</li>
<li>Regardless of the format choosen by the user, I want to convert it to mp4. Is it possible? If so, can you tell me how?</li>
</ol>
