B4i Question Decode bitmap to base64 string - Erel (first post)    Nov 9, 2014   (4 reactions) It is the same as in B4A:
Sub ImageToBase64(img As Bitmap) As String
Dim su As StringUtils
Dim out As OutputStream
out.InitializeToBytesArray(0)
img.WriteToStream(out, 100, "JPEG")
Return su.EncodeBase64(out.ToBytesArray)
End Sub
... B4A Question Encode bitmap to Base64 string. - Rega (first post)    Jul 30, 2014 You rock! Thank you.
Works greate.... B4A Question image into imageview to web, format base64 - ivanomonti    Nov 11, 2015 I need to save the picture included in a imageview sending php to the same binary base64, but I've never done this with B4A... B4A Question How to use base64 (blob image) image to ImageSlider - Erel (first post)    Feb 13, 2020   (1 reaction)
Doesn't it take too much time to decode
Test it. Make sure to measure performance in release mode.
Will probably be fast enough.... B4A Library [B4X] Library Base64 encode/decode Image and File library - MarcoRome    Aug 26, 2024   (33 reactions) As String = Base64EncodeDecodeImage.Base64ImageToString2(bitmap1)
ImageView2.Bitmap...)
'Check if Valid Base64
If Base64EncodeDecodeImage.ValidBase64(base) Then
ImageView1.Bitmap... B4A Library Base64 encode/decode image library - Peter Simpson    Oct 8, 2018   (16 reactions)   tags: Base64, B4A Base64Con As Base64Convert To get an encoded base64 data stream, and return it as an bitmap ready to load into an image view for example, use the following line. Base64Con.DecodeToImage(ImgStr As String) As Bitmap Or To get an image file, and encode it into an base64 data stream, ready to save...: DecodeToImage (ImageStr As String) As Bitmap Use this call to decode the base64 datastream into an image...I noticed the other day that there were quite a few questions regarding decoding base64 image... B4A Question convert base64 to image - Erel (first post)    Mar 5, 2019 Your code looks correct.
The problem is somewhere else. First step is to create a text file with the base 64 string and upload it.... B4i Question Base64 to Bitmap - Cornelius Smit (first post)    Dec 14, 2018 A video will not help. I recommend you to start a new thread and explain a single issue that you encounter.
Hi Erel
I found the issue and explained it in the next post.... B4A Question How to convert Base64 string to Image and apply to a button - Erel (first post)    Jun 6, 2013 See the code I posted here: http://www.b4x.com/forum/basic4android-updates-questions/29738-data-uri-scheme-displaying-base64-encoded-image-string.html#post172545
Note that this is the second result when you search for: base64 to string
There are many examples of applying images to buttons. Search for StateListDrawable.... Share My Creation [B4X] B4XBase64 encode and decode: Made only with B4X code, without external libraries - TILogistic    Sep 3, 2024   (10 reactions) s As String = Base64.ImageEncode(BitmapImage, "jpg") 'or png Log("Encode:"....BytesToImage(Base64.Decode(s)) B4XImageView1.ResizeMode = "FILL" Log("3... 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... Base64.URLDecode(Base64.URLEncode(s))) Log("2.- ************** IMAGE ************** "... Page: 1   2   3   4   5   6   7   |