リファレンス loadBytes()

loadBytes()

このメソッドは、最大64MBまでのサイズのファイルを取得するのに適しています。

実例

シンタックス

loadBytes(file, [callback], [errorCallback])

パラメーター

file
String:

読み込むファイルの名前またはURL

callback
Function:

loadBytes()が完了した後に実行される関数

errorCallback
Function:

エラーが発生した場合に実行される関数

リターン

Object: bytesプロパティが読み込まれたバッファーになるオブジェクト
This page is generated from the comments in src/io/files.js . Please feel free to edit it and submit a pull request!

関連するリファレンス