Android Question How Can I compress bytes to brotli

abbas abedi

Member
hi
How Can I compress bytes to brotli encoding ?


I use this code to decompress brotli
B4X:
#AdditionalJar: dec-0.1.2.jar

Sub DecompressInputStream(in As InputStream) As Byte()
    Dim jo As JavaObject
    jo.InitializeNewInstance("org.brotli.dec.BrotliInputStream", Array(in))
    Return Bit.InputStreamToBytes(jo.As(InputStream))
End Sub
 
Last edited:
Top