B4J Question [B4X]How to compress and decompress strings using gzip. - teddybear (first post)    Apr 5, 2025   (1 reaction) : Caused by: java.util.zip.ZipException: Not in GZIP format
compressed = su.DecodeBase64(base64..., it(compressed) only is bytes which decoded Base64, not GZIP format. you can directly convert the bytes to... B4A Library [B4X] Library Base64 encode/decode Image and File library - MarcoRome    Aug 26, 2024   (33 reactions) Updated Library https://www.b4x.com/android/forum/threads/b4x-library-base64-encode-decode-image.../android/forum/threads/base64-encode-decode-image-library.31031/ ) "...in attached the library for... B4A Library [B4X] [class] MJPEG decoder - Erel    Jul 9, 2018   (15 reactions)   tags: B4X CLASS MJPEG Decoder, Video, Erel The attached class is an implementation of a MJPEG over Http decoder. The data is a mix of strings and raw bytes. It is tempting to convert the bytes to a string. However raw bytes do not represent a valid string so you can lose important information during the conversion (which will also slow down the program). Edit: For new projects it is recommended to use BytesBuilder. The following sub is used to search for strings or bytes in the raw bytes directly: Private Sub IndexOfString... B4A Code Snippet [B4X] Convert Base64 To String, String To Base64 and Validate Is Base64 - Lucas Siqueira    Mar 21, 2025   (8 reactions) .DecodeBase64(text) Return BytesToString(b, 0, b.Length, "UTF8") End Sub Credits: @Douglas Farias (code isBase64) remember: Convert bitmap to base64 use Base64EncodeDecodeImage from... Sub isBase64(text As String) As Boolean If Regex.IsMatch("^({4})*({4}|{3}=|{2}==)$"... End Sub Sub convertStringToBase64(text As String) As String Private su As StringUtils Private b() As Byte = text.GetBytes("UTF8") Return su.EncodeBase64(b) End Sub Sub... B4A Library Base64 and Encryption library - agraham    Apr 11, 2016   (17 reactions)   tags: Security, Lib Here's a library that, for the moment, can perform Base64 encoding and decoding and symmetric algorithm encryption and decryption. Tested symmetric algorithms are DES, Triple DES and AES (Rijndael). As the Java encryption rountines are all byte array oriented you will need my ByteConverter library to run the demo. EDIT :- Version 1.1 posted. Asymmetric algorithms, Signing and MACs now implemented. See post#2 for details.... B4R Code Snippet Base64 decoding - Erel    Sep 8, 2019   (8 reactions) = DecodeBase64(Result, "RGVjb2RpbmcgQmFzZTY0IHN0cmluZyB3aXRoIEI0UiEhIQ==") Dim bc As ByteConverter... the length of the decoded data Sub DecodeBase64(Result() As Byte, Text() As Byte) As UInt Dim rawlength... + 1 Loop four(i) = GetBase64Index(Text(si)) Next Result(ri) = Bit... Loop Return length End Sub Sub GetBase64Index(u As Int) As Int If u = 43 Then Return 63... B4A Library Base64 encode/decode image library - Peter Simpson    Oct 8, 2018   (16 reactions)   tags: Base64, B4A I noticed the other day that there were quite a few questions regarding decoding base64 image stings, so I quickly put together this simple but effective base64 encode/decode images library for... Share My Creation [B4X] Free version 1.0 code!! - B4XBase64 encode and decode: Made only with B4X code, without external libraries - TILogistic    Jun 9, 2025   (15 reactions) encoding and decoding
. Image file encoding and decoding
. Text file encoding and decoding
. Base64 encoding and decoding
. Base64-Safe encoding and decoding
. Convert Base64 to Base64-Safe
. Convert Base64-Safe to Base64
. Validates Base64 or Base64-Safe encoding
. Character repeater
. Others
Note...B4XBase64 encoding and decoding algorithms were developed using B4X code only, without external... B4R Code Snippet Base64 en-/decode via inline C - KMatle    Jan 31, 2022   (3 reactions) (255) As Byte
Public b64decoded_len As ULong
Add to your code and call the Base64 sub
Sub Base64...::_b64decoded_len
);
}
#End If
#if c
#include "mbedtls/base64.h"
void Base64Decode... B4A Question Base64 decoding problem - cxbs (first post)    Aug 6, 2021 .decodebase64 check whether it is gzip compression during decoding, and if so, do gzip decompression along the way!
(the above English is from translation software)
Dim B64 As Base64
Dim su... Page: 1   2   3   4   5   6   |