android convert short video to byte array

android convert short video to byte array
ByteArrayOutputStream baos = new ByteArrayOutputStream();
FileInputStream fis = new FileInputStream(new File(yourUri));

byte[] buf = new byte[1024];
int n;
while (-1 != (n = fis.read(buf)))
    baos.write(buf, 0, n);

byte[] videoBytes = baos.toByteArray();
Source‮ww:‬w.lautturi.com
Created Time:2017-09-02 14:16:43  Author:lautturi