10-19-2017 07:19
10-19-2017 07:19
I'm trying to display an image from the web like so:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="background"> <image xlink:href="http://homepages.cae.wisc.edu/~ece533/images/barbara.png" x="0" y="0" height="250" width="348" /> <text id="defaultText"> Test </text> </svg>
The image is not getting loaded, even though I have checked "internet" in settings:
I'm not getting any errors in console. Any help displaying external images is greatly appreciated! 🙂
Answered! Go to the Best Answer.
10-20-2017 07:25
10-20-2017 07:25
Sorry, the device does not have a direct internet connection, so this type of remote image loading is not possible.
You need to either include the image directly in your project, or download the image using "fetch()" in the Companion API, then send the image file to the device using the File Transfer API.
https://dev.fitbit.com/guides/communications/file-transfer/#overview
10-20-2017 07:25
10-20-2017 07:25
Sorry, the device does not have a direct internet connection, so this type of remote image loading is not possible.
You need to either include the image directly in your project, or download the image using "fetch()" in the Companion API, then send the image file to the device using the File Transfer API.
https://dev.fitbit.com/guides/communications/file-transfer/#overview
10-24-2017 08:15
10-24-2017 08:15
Can you show me documentation on how to add an image to my project while using Fitbit Studio's web version please?
10-24-2017 11:12
10-24-2017 11:12
@SunsetRunner wrote:Can you show me documentation on how to add an image to my project while using Fitbit Studio's web version please?
Drag and drop your image directly into the resources folder of your project in Fitbit Studio.
https://dev.fitbit.com/getting-started/