How to convert loca video file to base64encoded string
<p>I have to convert local video file to base46 encoded string and this converted string have to send to server.</p>

<p>For this i found code sample</p>

<pre><code>public void encode(File file, OutputStream base64OutputStream) {
  InputStream is = new FileInputStream(file);
  OutputStream out = new Base64OutputStream(base64OutputStream)
  IOUtils.copy(is, out);
  is.close();
  out.close();
}
</code></pre>

<p>But i don't know how to use this and how exactly it works can any one please help me.</p>
