create helper class to read blob data

This commit is contained in:
deepak1556 2016-08-31 05:38:32 +05:30
parent 5cbc8d5c71
commit 7b85ca0301
12 changed files with 251 additions and 153 deletions

View file

@ -93,7 +93,8 @@ The `uploadData` is an array of `data` objects:
* `data` Object
* `bytes` Buffer - Content being sent.
* `file` String - Path of file being uploaded.
* `blobUUID` String - UUID of blob data.
* `blobUUID` String - UUID of blob data. Use [ses.getBlobData](session.md#sesgetblobdataidentifier-callback) method
to retrieve the data.
To handle the `request`, the `callback` should be called with either the file's
path or an object that has a `path` property, e.g. `callback(filePath)` or

View file

@ -328,7 +328,7 @@ Returns a `String` representing the user agent for this session.
#### `ses.getBlobData(identifier, callback)`
* `identifier` String - Valid UUID or public blob URL.
* `identifier` String - Valid UUID.
* `callback` Function
* `result` Buffer - Blob data.
@ -521,7 +521,8 @@ The `uploadData` is an array of `data` objects:
* `data` Object
* `bytes` Buffer - Content being sent.
* `file` String - Path of file being uploaded.
* `blobUUID` String - UUID of blob data.
* `blobUUID` String - UUID of blob data. Use [ses.getBlobData](session.md#sesgetblobdataidentifier-callback) method
to retrieve the data.
The `callback` has to be called with an `response` object: