I’m making a drawing app, and I have a share feature for the drawings. For that, I’ve tried
from Media-DB1 call upload image
media= image of canvas1. It wasn’t working, so I tried
if error-
from label1 set text to error.
It said
If you just want to share a screenshot with another person, I was able to share a screenshot of the canvas drawing via text message (Messages app on iPhone) using these blocks:
When I use these blocks, I get “undefined” for the status. @drted Any ideas what I’m doing wrong with paremeters/headers? See the post above this for a working curl command.
I took a look at this post and thought you might find this project interesting.
When you click the Button, it:
Saves the image of the canvas as a cloud variables
Uses this cloud variable as a source for the Image component in the app
Displays the base 64 URL for the image on a Label
This works for me on Android, iOS and web. If it works in your project, you may find it easier to work with than the Cloudinary API. Make sure to connect your own Firebase DB to your project if you end up using this method!
I noticed that your error message in the original post said that it couldn’t upload the image of the Canvas to Cloudinary as it was an Object, but then found that I couldn’t attach a ‘generate JSON from Object’ block directly to the ‘image of Canvas’ block - I’ll mention this to the team.