abbas abedi Member Aug 15, 2024 #1 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: Aug 15, 2024
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