I meant the SimpleBase641 extension used in the google sheets upload example.
Yes, but that only works for images, which should be OK for this application
Sorry, didn't know that was a unacceptable question.
Is there a difference between KYO4_Simplebase641 and simplebase641. there is no Decode block in KYO4_simplebase641.
As advised above:
You do not need to decode the image when you get the file back from imgbb.
Juan's base64 extension allows for conversion to and from base64
http://kio4.com/appinventor/277_extension_imagen_string.htm
the simplebase641 extension also provides a decode method:
I'have tried to switch from the ImagePicker component to the camera component, so I can upload the images i just took, but I didn't get any response. Can someone help me?
Show your relevant blocks, ensuring you show any filepaths and urls completely
I'm thinking maybe its the name of the variables (image) in the AfterPicture and ImageReady blocks. I'm not sure but maybe the same names mix up the code (i'm begginer). Also i'm sending the image to google sheets, but this part works fine using ImagePicker, the problem is when I switched to the camera component.
You will need to debug to find out which part of your workflow is failing.
Start with the filepath of the camera image. Does this work to encode the image to base64? Check the value of image in ImageReady block. Do you then get an image up on imgbb ?
If the output of the "when image ready" block is a base 64 string , then you can upload to imgbb
I solved it! I had to erase the "file://" part from the beginning of the url that the camera component generates.
I analized the urls when i use the ImagePicker and Camera component, and the main difference between them was this part, removed it with a replace text block and the image went up to imgbb and google sheets too. Thank you all!