图片转base64插件
Module名:base64
1. 图片base64编码: base64EncodedImage:callback:
1.1 入参
图片路径
1.2 出参
{"res":"res","encodedImageStr":"fdsfsdfsdfsfsfsdfs...."}
参数 | 类型 | 说明 |
---|---|---|
encodedImageStr | 经过base64编码的数据 |
2.iot aliyun 登出: compressBase64EncodedImage:callback:
2.1 入参
{"imgPath" : "图片路径", "maxByte" : "指定压缩大小(单位字节)"}
参数 | 类型 | 说明 |
---|---|---|
imgPath | 图片路径 | |
maxByte | 指定压缩大小(单位字节 |
2.2 出参
{"res":"res","encodedImageStr":"fdsfsdfsdfsfsfsdfs...."}
参数 | 类型 | 说明 |
---|---|---|
encodedImageStr | 经过base64编码的数据 |