base64converter.js
function convert(file) {
const fr = new FileReader();
fr.onload = (e) => {
// readAsDataURL実行後の処理
// e.target.resultでbase64文字列を取得
});
};
fr.readAsDataURL(file);
}
Go to list of users who liked
More than 5 years have passed since last update.
function convert(file) {
const fr = new FileReader();
fr.onload = (e) => {
// readAsDataURL実行後の処理
// e.target.resultでbase64文字列を取得
});
};
fr.readAsDataURL(file);
}
Register as a new user and use Qiita more conveniently
Go to list of users who liked