I think I did see something like base 64 on the latest version of BANano. Is it possible to get a base64 string from an asset file using that? If so, can help with a snippet be provided please?
I am working with 2 types of image sources:
- IMG downloaded from an URL and
- images returned into a json with base64 format.
1/ But i do not know how to put the image b64 in an image view,
2/ in the meantime and until today, I do like this: I first copy the image datas from base64...
Im using that kind of sub with StringUtils and B4XCipher library to encode some passwords :
Sub EncryptText(text As String, password As String) As String
Dim c As B4XCipher
Dim su As StringUtils
Return su.EncodeBase64(c.Encrypt(text.GetBytes("utf8"), password))
Today I was looking for a method for encoding and decoding in Base64.
There are many libraries including the well-known StringUtils. But the decoding signaled me an error but it was not possible to understand exactly what the error was
So I created for B4J a class that using inline Java code...
B4R code (Vars in Process_Globals)
Dim b64encoded(1024) As Byte
Dim b64toencode(1024) As Byte
You need the RandomAccess lib to use the ByteConverter
void B64 (B4R::Object* o)...
Good day I am a bit frustrated as my code work in Android but not in IOS
I get the following error
Error occurred on line: 65 (Main)
Error loading image.
Stack Trace: (
CoreFoundation <redacted> + 252
libobjc.A.dylib objc_exception_throw + 56
CoreFoundation <redacted> +...
I have a little problem, maybe who knows:
I have a tool in VB.NET that converts a string value to a base64 string.
Dim byt As Byte() = Encoding.UTF8.GetBytes("Thomas")
The Base64 Value is: VGhvbWFz
Now I want to restore this...
I have a bash script in linux that works correclty, but i wantes to port the code to BJ4.
Is it possible to achieve the same in B4J ??
I was thinking of the encrypt and string utils for the base64 encode !?
curl --user username:password -H "Content-Type:text/xml" -i -X POST...
After some years I have developed several apps to communicate with other apps, servers and platforms. My goal was to have ONE standard solution without additional propriatary solutions which work only on platform a but not on b. So I've ended up with lists and maps converted from/to JSON...
hi everyone !
i am trying obfuscate base64 replacing letter by letter using this algorithm below :
note : completes the obfuscation in about 5 seconds, being too slow for software that needs to communicate with the socket server ...
What can i do to improve the performance of this algoritm ...
Pulling down emails from a mail server and saving them to a local SQLite DB using B4A.
Currently we are converting the data to Base64 and then saving it to a nvarchar however it seems every so often some special character is messing things up - crashes the routine.
Most emails are written to...