Skip to content

@vtj


@vtj / utils / fileToBase64

Function: fileToBase64()

fileToBase64(file): Promise<string>

Defined in: packages/utils/src/util.ts:11

文件对象 File 转换为 base64

Parameters

file

File

Returns

Promise<string>

Released under the MIT License.