diff --git a/scanner/pages/frame/frame.js b/scanner/pages/frame/frame.js index 825cac0..df27d65 100644 --- a/scanner/pages/frame/frame.js +++ b/scanner/pages/frame/frame.js @@ -122,7 +122,10 @@ Page({ uploading: true, }); const url = `https://themblem.com/api/v5/frame/${session_id}/${frame_id}`; - const image_data_url = data_url_from_frame(res.width, res.height, res.data); + var uca1 = new Uint8ClampedArray(res.data); + var uca = new Uint8ClampedArray(uca1); + + const image_data_url = data_url_from_frame(res.width, res.height, uca); wx.request({ url, method: "POST",