camera in my chat app

How do I add a button to open the camera and send the photo taken in the chat? (I'm using clouddb)


Add a button component anywhere you Want and then add camera Component

Add Logics like this

when ButtonCamera.Click
call Camera.TakePicture

when Camera.AfterPicture
if not empty(getImage)
call CloudDB1.StoreValue
tag: join(get global roomName, "Chat", get global userName)
valueToStore: getimage

1 Like

I thought you can only store text lists with CloudDB? Arent you just storing the path this way?
Correct me if I am wrong

1 Like

You can store images to cloudDB, but you must use a separate tag for each image, and supply a full file path to the image. When you call back an image from the cloudDB it is stored in an appinventorBinaries folder in your ASD.

1 Like

Oh, ok…nice to know!

1 Like