Setting canvas backgroundimage

679 views
Skip to first unread message

Victor Venancio S.

unread,
Jan 28, 2018, 12:04:31 AM1/28/18
to MIT App Inventor Forum
Hi guys,
I'm getting image URL from TinyWebDB and setting to canvas background image but nothing occur. I've tested if the database was running correctly and I found that yes by a label which show the value got from database.

Thanks for reading!
test.jpg

TimAI2

unread,
Jan 28, 2018, 5:42:44 AM1/28/18
to MIT App Inventor Forum
I don't think that url will work to display an image from google drive. You need to use a url that simulates a download link, then it should work. You also need to make the image public / anyone with the link.

See here

and for example:

this won't work:


but this should work

https://drive.google.com/uc?export=download&id=186WQn2-bXBTKQgh8J1SN-UcVp8nF0ZZR  (image should appear below!)


Victor Venancio S.

unread,
Jan 28, 2018, 9:06:11 AM1/28/18
to MIT App Inventor Forum
THANK YOU SO MUCH!


Abraham Getzler

unread,
Jan 28, 2018, 12:10:58 PM1/28/18
to MIT App Inventor Forum
Reply all
Reply to author
Forward
0 new messages