Object documentation: CompressedStreams B4J Question Zip a byte array to a byte array and unzip a byte array to another a byte array - emexes (first post)    Nov 26, 2023   (1 reaction) I am trying to zip and unzip a byte array to another byte array. If by "zip" you mean "compress" then why not use CompressedStreams? (in library jRandomAccessFile) B4J = https://www.b4x.com/b4j/help/jrandomaccessfile.html#compressedstreams B4A = https://www.b4x.com/android/help/randomaccessfile.html#compressedstreams B4I = https://www.b4x.com/b4i/help/irandomaccessfile.html#compressedstreams... B4i Question compress files in Gzip format - Erel (first post)    Feb 1, 2024 You can use CompressedStreams from RandomAccessFile to gzip data.... B4A Question Compress Bytes or String - Erel (first post)    Jun 13, 2022   (1 reaction) Use CompressedStreams.CompressBytes (RandomAccessFile).... B4A Library RandomAccessFile - V1.15 - Android gzip and zlib compressions - Erel    May 22, 2011   (2 reactions) This update adds support for gzip and zlib compression. It allows you to wrap an input stream or output stream and then decompress data while reading or compress data while writing. It also supports in-memory compression and decompression. A full example is available in the manual: http://www.b4x.com/android/help/randomaccessfile.html#compressedstreams Installation instructions: - Unzip the attached file. - Copy both files to the internal libraries folder: C:\Program Files\Anywhere... B4A Question Randomaccessfile compression - grafsoft    Aug 12, 2015 What is the compression method of randomaccessfile.writeobject? I need to decrypt it in PHP. Or should I use CompressedStreams?... B4A Code Snippet GZIP: B4x & PHP via okHttpUtils - KMatle    Nov 16, 2016   (5 reactions) ();
while($r = mysqli_fetch_assoc($q))
{
$rows = $r;
}
$compressed = gzencode(json_encode($rows), 9);
print $compressed;
B4x: In Job.Done we use RAF's CompressedStreams:
Dim OS....GetInputStream, OS)
Dim Buffer() As Byte
Buffer = OS.ToBytesArray
Dim compress As CompressedStreams
Dim decompressed() As Byte
decompressed = compress.DecompressBytes(Buffer... B4i Question [Almost SOLVED] DEFLATE Compression - Star-Dust (first post)    Mar 16, 2021   (2 reactions) Dim Deflate As CompressedStreams
Dim CompressData() As Byte
CompressData=Deflate.CompressBytes(Data(),"zlib")... B4i Question Any library to compress strings on iOS? - Erel (first post)    Sep 18, 2020 You should use CompressedStreams.CompressBytes in all platforms.... B4A Question Decode & decompress to get from php json to B4A, i need the inverse - scsjc    Aug 21, 2016 Hello, i have a code and get from web php:
$gzdata = base64_encode(gzcompress(json_encode($return_arr)));
echo $gzdata;
And decode into APP with B4A with that:
Sub decode(texto As String) As String
Dim strResult As String
Dim cs As CompressedStreams
Dim su As StringUtils
Dim bt() As Byte
Dim bc As ByteConverter
Try
bt = su.DecodeBase64(texto... B4A Question where is the best method for encryption DB? - OliverA (first post)    Mar 10, 2018   (1 reaction) that every cell contains a long Json You could also compress the JSON first (use CompressedStreams class from RandomFileAccess library), then XOR the resulting byte array.... Page: 1   2   3   4   5   6   7   |