B4A Question Sending Big Json String - Using CompressedStreams - virpalacios (first post)    May 26, 2024
a) yes. String.GetBytes.
b) no.
Hi Erel, Thanks a lot for your answer, Best Regards
Greetings :D??... 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 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 Compress Bytes or String - Erel (first post)    Jun 13, 2022   (1 reaction) Use CompressedStreams.CompressBytes (RandomAccessFile).... 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... 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?... B4i Question Any library to compress strings on iOS? - Erel (first post)    Sep 18, 2020 You should use CompressedStreams.CompressBytes in all platforms.... 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")... B4J Question Zipping - advice sought - emexes (first post)    Feb 25, 2025 CompressedStreams which is bundled with the RandomAccessFile library, but it only does one file at a time, ie doesn't bundle multiple files into one compressed archive (but having said that, because it's a stream, it's easy enough to do that yourself into a simple handcoded format if you really need it) https://www.b4x.com/b4j/help/jrandomaccessfile.html#compressedstreams Or to use... use in a B4X app? doesn't have to be same app as did the compressing in which case, try... Page: 1   2   3   4   5   6   7   |