How do you append an image as a value in a list using CloudDB AppendValue() method?

I was trying to make a chat app using cloudDB. Using a tutorial from YouTube, I got away with sending text messages, but images are another beast. I tried to use the answer to my "Image to CloudDB" question, but it doesn`t work, so can anyone help me, please?

newchat2.aia (4.9 KB)

use storeValue (not appendValue ), the valuesToStore is an image full path starting with file://...., then the image will be stored in form of BASE64.

When you getValue, the image will be downloaded and saved in the ASD.

Alternatively, you can convert your image to a base64String / datauri and store that in your list. Other users of the cloudDB would need to convert this back to an image in order to view, or display the datauri in a webviewer.

You may want to resize the image first, to keep down string size / upload-download times.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.