TIMAI2  
                
               
               
              
                  
                    April 28, 2025, 12:10pm
                   
                   
              57 
               
             
            
              Nope, you are storing the path to the image on your device.
             
            
               
               
               
            
            
                 
                 
              
           
          
            
              
                D_M  
                
               
               
              
                  
                    April 28, 2025, 12:21pm
                   
                   
              58 
               
             
            
              Thank you TIMAI2, but I have not the images on my device because I deleted them. 
If I save a path, and the images are not on my phone, I shouldn't see them... is it right? 
Please I need to understand 
             
            
               
               
               
            
            
                 
                 
              
           
          
            
              
                Taifun  
                
               
               
              
                  
                    April 28, 2025, 12:22pm
                   
                   
              59 
               
             
            
              
On your device 
Now test it on another device to display the stored image
Taifun
             
            
               
               
               
            
            
                 
                 
              
           
          
            
              
                D_M  
                
               
               
              
                  
                    April 28, 2025, 12:34pm
                   
                   
              60 
               
             
            
              Could you kindly give me the right blocks combination to use for my application?
             
            
               
               
               
            
            
                 
                 
              
           
          
            
              
                Taifun  
                
               
               
              
                  
                    April 28, 2025,  1:30pm
                   
                   
              62 
               
             
            
              The first post of this thread links to this example 
What about adjusting these blocks to your needs?
Taifun
             
            
               
               
               
            
            
                 
                 
              
           
          
            
              
                D_M  
                
               
               
              
                  
                    April 28, 2025,  1:40pm
                   
                   
              64 
               
             
            
              What about point n 7 here?
  
  
    7.- Blocks: ImageToBase64, Base64ToImage, CanvasToBase64 and TakePictureToBase64. 
These blocks were ideas from @TIMAI2  : 
Convert an Image component to string Base 64. [This code was made by @Kumaraswamy ] 
[base64_28a] 
Set picture in Image component by string Base 64. 
[base64_23b] 
Convert image in Canvas component to string Base 64. [This code was made by @Kumaraswamy ] 
[base64_28c] 
Take picture with Camera component and convert image to string Base 64 [This code was made by @TIMAI2 ]…
   
 
             
            
               
               
               
            
            
                 
                 
              
           
          
            
              
                D_M  
                
               
               
                 
              
                  
                    April 28, 2025,  2:22pm
                   
                   
              66 
               
             
            
              Do you think following solution is ok?
             
            
               
               
               
            
            
                 
                 
              
           
          
            
              
                TIMAI2  
                
               
               
              
                  
                    April 30, 2025,  7:59am
                   
                   
              67 
               
             
            
              Have you tested your blocks ? Do they work as intended?
If not, what does happen, what errors do you get?
             
            
               
               
               
            
            
                 
                 
              
           
          
            
              
                D_M  
                
               
               
              
                  
                    April 30, 2025,  8:10am
                   
                   
              68 
               
             
            
              Hi @TIMAI2 , my blocks seems work, also in another phone. 
But I would like to be sure (do you remember, before my app also worked, but I saved only link to images, not images   ). 
I ask this, because in other examples I see blocks with a path text... I have to use it?
             
            
               
               
               
            
            
                 
                 
              
           
          
            
              
                TIMAI2  
                
               
               
              
                  
                    April 30, 2025, 10:15am
                   
                   
              69 
               
             
            
              Because you are using ImageToBase64 you do not need a path.
             
            
               
               
               
            
            
                 
                 
              
           
          
            
              
                D_M  
                
               
               
              
                  
                    April 30, 2025, 10:47am
                   
                   
              70 
               
             
            
              Thank you very much @TIMAI2 !!!
             
            
               
               
               
            
            
                 
                 
              
           
          
            
            
              Hi im trying to use this extension to take an image from the user's photo gallery and convert it to base64 so that gemini can analyze it. I believe something is wrong with the conversion because the app never analyzes the image. is this the correct block to use for this process? 
             
            
               
               
               
            
            
                 
                 
              
           
          
            
            
              bang ajarin tolong, aku eror waktu mau ambil base64 di realtime database
             
            
               
               
               
            
            
                 
                 
              
           
          
            
              
                TIMAI2  
                
               
               
              
                  
                    August 13, 2025,  7:45am
                   
                   
              73 
               
             
            
              No need to post in two places, we will stay with your request in the other topic:
  
  
    com.google.appinventor.components.runtime.errors.YailRuntimeError: Value failed to convert from JSON. at com.google.appinventor.components.runtime.FirebaseDB.DataChanged(FirebaseDB.java:561) at com.google.appinventor.components.runtime.FirebaseDB$1$1.run(FirebaseDB.java:154) at android.os.Handler.handleCallback(Handler.java:959) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loopOnce(Looper.java:301) at android.os.Looper.loop(Looper.java:398) at android.app.Activity…
   
 
             
            
               
               
               
            
            
                 
                 
              
           
          
            
            
              
The KIO4_Base641.CanvasToBase64 cases an error with the .apk saying Runtime Error buildCache 
 Why is this happening?
            
 
            
               
               
               
            
            
                 
                 
              
           
          
            
              
                Taifun  
                
               
               
              
                  
                    November 1, 2025,  7:41pm
                   
                   
              75 
               
             
            
              
 Superman_Son:
 
Runtime Error buildCache
 
 
Probably it is a size issue of the canvas? How large is it? Which device and Android version are you using for your tests? Did you try another device?
To find out more about the runtime error use logcat
  
  
    ADB is a command-line utility that that can be used to control your device over USB from a computer. It will allow you to install / uninstall and or view logs on your device. This could be very handy when there are issues with a specific app and you like to view the logs for information that may lead to identify the cause of error. 
In this post, we’ll discuss how to install and use ADB. 
Installation: 
ADB comes with Android SDK. However, you can download ONLY the ADB files from HERE  . 
EDIT: …
   
 
Taifun
             
            
               
               
               
            
            
                 
                 
              
           
          
            
              
                TIMAI2  
                
               
               
              
                  
                    November 1, 2025, 10:53pm
                   
                   
              77 
               
             
            
              See here for a workaround solution (read full topic):
  
  
    Hi, I have a question. I'm using Juan's KIO_BASE641 extension and I was thinking of adding a signature. I mean, I'd sign it on a canvas and then convert it to Base64 to add it to a Firebase dictionary. But when I try to do it with his "CanvasToBase64" component and my SignatureImage, I get the following error: "com.google.appinventor.components.runtime.Canvas$CanvasView.buildCache  
Note: You will not see another error reported for 5 seconds." 
Could someone help me or give me some advice, pleas…