Base64 encoded Bitmap on watch app

Hi all, 

i am developing my first android support app + watch app and really struggling to find a way to decode my base64 encoded bitmap image and show it on the watch. 

Any ideas/help would be really appreciated.

Thanks a lot!

Alex

Top Replies

All Replies

  • CIQ only supports bitmaps as image resources or as loaded from the network via makeWebRequest().

    You can't convert arbitrary data to a bitmap (unless ofc you parse and render the bitmap yourself, which would be very unlikely in CIQ's resource-constrained environment.)

    To see an example of loading image resources, you could look at the Primates sample in the SDK (in VS Code: CTRL/CMD-SHIFT-P > "Monkey C: Open Samples Folder").

  • Thanks for your answer!

    WOW, i didn't even thing that might become a problem. It seems such a trivial thing to do that assumed it was feasible (assumptions always get me :-D).

    Thing is that i want to show images that are unknown to me beforehand, so i cant preload them as recourses.

    Making web requests is viable but has so many drawbacks, like cellular dependency, server to upload/download the images, added lag depending on the cellular signal strength.

    That seems like a major missing api from the SDK, but i suspect that its done to safeguard the long battery/low power environment of the watch.

    Might give parsing and drawing them a try but i am not sure i want to learn so much about bitmaps :-P