title: Large file to base64 string array
body: <p>My function returns a string which is out of its limit, because of the large file size I am using. </p>
  
  <p>Is there a way to create a function that returns a string array so that later on I can cascade them and recreate the file ?</p>
  
  <pre><code>private String ConvertVideoToBase64()
  {
      ByteArrayOutputStream baos = new ByteArrayOutputStream();
      FileInputStream fis;
  
      try {
          File inputFile = new File("/storage/emulated/0/Videos/out.mp4");
  
          fis = new FileInputStream(inputFile);
  
          byte[] buf = new byte[1024];
          int n;
          while (-1 != (n = fis.read(buf)))
              baos.write(buf, 0, n);
          byte[] videoBytes = baos.toByteArray();
  
          fis.close();
  
          return Base64.encodeToString(videoBytes, Base64.DEFAULT);
          //imageString = videoString;
      } catch (IOException e1) {
          // TODO Auto-generated catch block
          e1.printStackTrace();
      }
  }
  </code></pre>