next step to accept image data and show the image (this is the part that i'm having issues with )
I read some comments online and used image block convert to base64 and view the jpeg image but It didn't work as expected .
I tried the method you provided. It seems that you need to save the base64 data to a JPG file and then retrieve it to display the image on the phone.
In my case, I want to decode the base64 image data (which is captured from Arducam and converted to a base64 string) and display it right away. I tried connecting the received string block directly to the .base64toImage block as shown below:
However, it's giving me a runtime error "bad base-64". When I use list view to display the received data, I can see the whole frame received as a base64 string. So, I'm not exactly sure why the error occurs.
I also tried copying a base64 JPEG frame from camera and pasting it into a text box to see if it displays the image properly, and that works:
My question is, for the incoming string data, do we still need to copy the JPEG frame as a base64 string to a file in order to display the image? Or is there a way to decode it right away and show the JPEG image (Similar method as showed in the first image ?
Thank you for the prompt response @Juan_Antonio , is there a method or example that can append all the received bytes in that frame and send to decode ? Instead of saving in to a file and decode to file to an image ?