Hello everyone!
sorry for my bad english.
This is the first time in this forum.
I have a base64 image and conversion problem.
I use the extension “com.ghostfox.SimpleBase64.aix”
after pressing the “Decode” button, I cannot copy the image of the block “image1” to the block “image2”.
this is the App Design
I know I can use “DecodeImage” again, but I wanted the problem is that I can’t understand why I can’t use the image that is in “Image1” to be able to transfer it to “image2”.
from what I seemed to understand is that once I have inserted the image in “image1” it is no longer possible to manage it in any way.
for label1 you are right it is an error that remained in one of the many tests carried out.
I had already tried this “extension”, but in this way I am forced to know exactly the name and position of the image.
The goal was instead to search for images through the gallery (simpler) with a block “ImagePicker”
It doesn’t force you at all! You could overwrite the image picker selection file
Just use the imagepicker selection block as the filename for FileToString
If you want to return the image later, save the value of imagepicker.selection to a variable or tinydb
Hello
maybe I exulted too early. I think your suggestion doesn’t work.
Everything seems to work but in reality the images are displayed only because they are still stored in “ImagePicker Selection” and not because they are converted by the “StringToFile” block.
In fact, even if you deselect the “StringToFile” block, the program works the same.
Also, if I insert a label2, I should see the return value “string” of the conditional base64 in the block “Got string”, but instead it returns “file not found”.
the StringToFile method converts a base64 string back into a file. This method is independent of picking any image using the image picker... using imagepicker1.selection as filename does not make much sense therefore IMHO