Hi @jane , I’m working on an app for little kids to learn writing. The app displays a letter for them to write, and they have to write it on the canvas. Then I want to use the OCR API to get the text they have written on the canvas, and check whether they have written the letter correctly/ written the same letter. Since the ocr api won’t accept the canvas image directly, I wanted to upload it to cloudinary and use the URL with the api, but cloudinary doesn’t accept base64 either. I’m able to connect the generate JSON from object block now, and display it in an input… Here it is:
Edit: When I tried to post the response, I crossed the 32,000 character limit because I had 100,000+. The response is in the next post.
I’m not sure what the hold up is then. It’s pretty straightforward to upload an image to Cloudinary. And there’s a block to get an image from the canvas. And if the API will take a url as input… which part do you need help with?
Media_DB expects a local path for the image and yours doesn’t have one.
I can think of 3 workarounds
Create a web viewer extension to save the image as a file and then use this file in your API or to upload to cloudinary to get the URL and work with it.
Because Base64 is considered as text, you can save it as a value under a key in Firebase and then create a Firebase function to move it from Realtime DB to Firebase storage and this will return a URL which you can use.
Save it to a Google sheet then use any of the extensions such as Zapeir/Integromat/IFTTT to upload it to a cloud storage and get the URL.