我正在尝试将从 expo 相机拍摄的图像保存在我的本地文件夹中。我得到 Uri,Base64 作为回报,并且 base64 字符串有时会很大。
将图像存储在我的桌面并将其记录在数据库中的最佳方法是什么
以下是我的代码:
const options = {
quality: 0.5,
base64: true,
skipProcessing: true,
};
let img = await ref.current.takePictureAsync(options);
setbase64(img.base64);