title: How to convert video/audio file to byte array and vice versa in android.?
body: <p>Am trying to convert audio/video to byte array and vice versa,
  using below code am able converting audio/video files to byte array(see below code) but am fail to convert large file(more then 50MB files) is there any limit.? 
  <strong>how to convert byte array to audio/video file.? kindly help me out.</strong></p>
  
  <pre><code>public byte[] convert(String path) throws IOException {
  
      FileInputStream fis = new FileInputStream(path);
      ByteArrayOutputStream bos = new ByteArrayOutputStream();
      byte[] b = new byte[1024];
  
      for (int readNum; (readNum = fis.read(b)) != -1;) {
          bos.write(b, 0, readNum);
      }
  
      byte[] bytes = bos.toByteArray();
  
      return bytes;
  }
  </code></pre>
  
  <p><strong>Kindly help out to get the result</strong></p>