

English
Convert ArrayBuffer object to Base64 string
Platform difference description
App | H5 | 微信小程序 | 支付宝小程序 | 百度小程序 | 抖音小程序、飞书小程序 | 快手小程序 | 京东小程序 | 元服务 | 小红书小程序 |
---|---|---|---|---|---|---|---|---|---|
√ | √ | √ | x | x | x | √ | √ | x | √ |
HarmonyOS |
---|
HBuilderX 4.23 |
Parameter Description
Parameter | Type | Required | Instruction |
---|---|---|---|
arrayBuffer | ArrayBuffer | Yes | ArrayBuffer object to be converted to Base64 string |
Example
const arrayBuffer = new Uint8Array([55, 55, 55])
const base64 = uni.arrayBufferToBase64(arrayBuffer)