public static byte[] decode(InputStream in) {
        try {
            return IOUtils.toByteArray(decodeToStream(in));
        } catch (IOException e) {
            e.printStackTrace();
            return null;
        }
    }
public static byte [ ] decode ( InputStream in ) { try { return IOUtils . toByteArray ( decodeToStream ( in ) ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; return null ; } }
Decode an input stream of b64-encoded data to an array of bytes.
@param in
@return the decoded bytes, or null if there was an error reading the bytes