Pot.js と PotLite.js で利用可能。
Blob インスタンスを作成して返します。
Blob インスタンス (HTML5 File API) を作成します。
Blob コンストラクタがサポートされてない場合、BlobBuilder がサポートされてたらそれを使用します。
Blob がサポートされてない場合は null が返ります。
任意に引数 type に MIME Type を指定します。('text/plain' etc.)
Pot.globalize() が適応されている場合、Pot.createBlob() が createBlob() で実行できます。
新しい Blob インスタンス が返ります。Blob をサポートしてない場合は null が返ります。
Pot.begin(function() {
var blob = Pot.createBlob('hoge');
var reader = new FileReader();
reader.readAsText(blob);
return reader;
}).then(function(res) {
Pot.debug(res); // 'hoge'
});