B4A Library Base64 encode/decode image library - Peter Simpson    
Oct 22, 2026   
(18 reactions)   
tags: Base64, B4AI 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... Base64Con As Base64Convert
To get an encoded base64 data stream, and return it as an bitmap ready to load... As String) As Bitmap
Or
To get an image file, and encode it into an base64 data stream, ready to save...
link: Hello Simpson:
Thanx for the library. Can you show me an example of converting a string into a picture and after saving it to an ImageView ?
( DecodeToImage (ImageStr As String) As Bitmap )...
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...
link:
How to use this file?
It's very simple, as written above:
if it's a png it will remain a p...
link:
How to use this file?
Just download the library and save it in B4A additional libraries then refre...
link: method.
To convert any file to Base64.
The library is for B4X (Tested...
B4A Library Base64 and Encryption library - agraham    
Apr 11, 2016   
(18 reactions)   
tags: Security, LibHere'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 Code Snippet [B4X] Convert Base64 To String, String To Base64 and Validate Is Base64 - Lucas Siqueira    
Mar 21, 2025   
(9 reactions) 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 convertBase64ToString(text As String) As String
Private su As StringUtils
Dim b() As Byte = su...
B4R Tutorial ESP32: AES256 encrypted & Base64 encoded post message to and from PHP - KMatle    
Feb 6, 2023   
(1 reaction)Example:
- AES256 encrypt a message with IV and Salt
- Base64 encode it
- send a http post request to a php script
- decrypt in php
- send back a AES256 encrypted and Base64 encoded message to...
$encrypt_method = "AES-256-CBC";
$total=base64_decode($string);
$id=substr($total, 0, 8);
$salt=substr($total, 8, 32);
$iv=substr($total, 40, 16);
$string=Base64_Encode(substr..., $encrypt_method, $pw, 0,$IV);
$enc=Base64_encode($id.$Salt.$IV.Base64_decode($enc...
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... Sub
#if c
#include "mbedtls/base64.h"
void Base64Encode (B4R::Object* o...
link: I have found the following 2 github pages. The second obviously is for ARM based embeded systems right...
link: Base64, you change it to a sub accepting an argument, you change slightly the C code (b4r_main...
link: it a b4xlib with methods Base64.Encode and Base64.Decode?
It's all built in (the mbedtls core...
B4J Question [BANano] [SOLVED] Putting a border on base64 images - Mashiane    
Aug 21, 2024();
// Set the image source to the base64 string
img.src = base64Image;
// Once the image...);
// Get the new base64 image string from the canvas
const newBase64Image = canvas...
link:
I just realize it can actually even be without the Inner method:
Sub AddBorderToBase64Image...
link: I just realize it can actually even be without the Wait method:
Sub AddBorderToBase64Image...
link: Base64Image As String = GetDemoImageData
Dim result As String
' call and wait for...
B4J Library [B4X] Library Base64 encode/decode image library - MarcoRome    
Mar 16, 2020   
(2 reactions)https://www.b4x.com/android/forum/threads/b4x-library-base64-encode-decode-image-library.115033/...
link: Nice one, Check the depends on for jBitmapCreator. (jiBitmapCreator)...
B4A Code Snippet Check if a string is Base64 (isBase64) - Douglas Farias    
Dec 2, 2018   
(13 reactions)Hi all.
I found this example in some old folders on my pc and decided to share here.
it is a simple code to check if a string is base64 hash.
This example use a regex.
Sub isBase64(text As String...
' TESTA A STRING CODIFICADA COM BASE64
Log(isBase64("ZG91Z2xhc2Zhcmlhcw==")) '=douglasfarias
' TESTA A STRING COM TEXTO
Log(isBase64("Test string"))'=dont is a base64 string
The result log is
true
false
Credits: stackoverflow, Douglas Farias and...
Page: 1  
2  
3  
4  
5  
6