HI All
How i get a list of images from a list of "json string "
i want to get all new images and save it in internal Dir
B4X:
Dimm bytesList As List
Dim count As Int = root.Get("count")
Dim items As List = root.Get("items")
For Each colitems As Map In items
Dim img As String = colitems.Get("img")
' I want here to save the image one-by-one '
Next
thanks for reply ,Sorry for not enough information
ok my case in details
i have
this end point
return json string
contains a list of images
i want to save this list of images on my device
i can read the json ,as i mention before
i have images as json string ,how i convert it to images and save locally
Base64 to Image Decoder is the best online tool to converts base64 string into image. It's easy to use base64 image decoder which helps to decode picture and Download.
codebeautify.org
The image was converted successfully.
Now all you need to do is follow one of the many BASE64 conversion threads on the forum.
Updated Library https://www.b4x.com/android/forum/threads/b4x-library-base64-encode-decode-image-and-file-library.115033/page-2#post-998317 From an idea of the Great Peter ( https://www.b4x.com/android/forum/threads/base64-encode-decode-image-library.31031/ ) "...in attached the library for...