base64

  1. D

    Android Question JSON parser

    Hey I faced such a problem, I will be glad to any advice or help, perhaps someone has already encountered such a problem. I store my data encoded as strings (locally and on a remote server, like base64). Now, when I receive a JSON file, I get an error because the string that I need to decode has...
  2. Mashiane

    B4J Question [BANano] [SOLVED] How can I get a base64 string for an asset image file?

    Ola 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? Thanks TheMash
  3. ALBRECHT

    Android Question Image URL and image base64

    Hello, 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...
  4. ALBRECHT

    Android Question EncodeBase64 for URL and Files

    Hello, 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)) End Sub Sub...
  5. Star-Dust

    B4J Code Snippet [XUI] SD Base64 - Encode / Decode

    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...
  6. KMatle

    B4R Code Snippet Base64 encode via Inline C

    B4R code (Vars in Process_Globals) Dim b64encoded(1024) As Byte Dim b64toencode(1024) As Byte Call bc.ArrayCopy2("Test",0,b64toencode,0,buf.Length) RunNative("B64", Null) You need the RandomAccess lib to use the ByteConverter Include #include <base64.h> C code void B64 (B4R::Object* o)...
  7. K

    Android Question NumberFormatException error

    numberformatexception error in php base64_encode string my php array :(ArrayList) [{id=1...
  8. Cornelius Smit

    iOS Question Base64 to Bitmap

    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> +...
  9. H

    Android Question Convert Base64 String (VB.NET) to B4A Restore.

    Hello, I have a little problem, maybe who knows: I have a tool in VB.NET that converts a string value to a base64 string. VB.NET Code: Dim byt As Byte() = Encoding.UTF8.GetBytes("Thomas") Dim Base64 Base64= Convert.ToBase64String(byt) The Base64 Value is: VGhvbWFz Now I want to restore this...
  10. Pedro Caldeira

    B4J Question For the Encryptation gurus out there.

    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...
  11. KMatle

    Android Tutorial [B4x]Data exchange (B4x, php, servers, .net and others)

    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...
  12. Waldemar Lima

    Android Question Problem on replace string letter by letter

    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 ...
  13. K

    Android Question Saving Email Body to SQLite

    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...
Top