Please add binary support to fetch API #156
Replies: 3 comments 1 reply
-
If anyone else has this problem, I made a workaround that involves the use of a proxy server. So then: app-side -> proxy server fetches > real url -> converts to base64 -> app-side decode to binary -> btle rpc it back to watch side |
Beta Was this translation helpful? Give feedback.
-
My first instinct is to try converting the image to base64 |
Beta Was this translation helpful? Give feedback.
-
Dear @stackrainbow , Hi, thank you for your feedback and questions on developing Mini Programs for Zepp OS. Due to hardware limitations of our devices, we apply certain processing to image resources during the Mini Program build process. Only images in the assets directory can be displayed properly on our devices currently. PNG images obtained from network sources cannot be displayed directly on our devices at this time. We understand the need to support more image formats and network images in Mini Programs. This functionality will be enabled in Zepp OS 3.0. We appreciate your patience and understanding. Please continue to provide us with your valuable feedback. It will help us to build an open platform that serves the needs of our developer community. Thank you! |
Beta Was this translation helpful? Give feedback.
-
If I try to retrieve a PNG using the fetch API on side service, the PNG is always corrupted. This is because it is forcibly converted to utf-8.
Use case: Sending the PNG from side service to my remote control media APP which would show now playing media image.
Beta Was this translation helpful? Give feedback.
All reactions