いてづきブログ

情シスでやってみたことの備忘録

2016-10-26から1日間の記事一覧

ExtJSのAjax.requestでファイルを扱う方法

binary: trueのオプションを設定すれば、response.responseBytesに格納されてくるのであとはblobを好きに扱える。 Ext.Ajax.request({ scope: this, url: 'url', binary: true, method: 'GET' }).then(function (response) { var blob = new Blob([response.…