次のコードを使用して、キャンバス イメージをブロブに変換しています。
BLOB をファイル/ファイルリスト オブジェクトに変換するには、そのファイルリストをファイル ハンドラーに渡す必要があります。
マイコード:
var canvas1 = document.getElementById("preview");
var theImage = document.getElementById("blahProfile");
theImage.src = canvas1.toDataURL();
var blob = dataURItoBlob(theImage.src);
そのブロブをファイルオブジェクトに変換する方法はありますか?