Class: Blob

Blob()

The Blob class represents an abstraction over a blob to be used in the APIs.

Constructor

new Blob()

Source:
Example
// in the browser, assuming you have a File object from an input for instance
var blob = new Nuxeo.Blob({ content: file });
// in node
var file = fs.createReadStream(filePath);
var stats = fs.statSync(filePath);
var blob = new Nuxeo.Blob({
   content: file,
   name: path.basename(filePath1),
   mimeType: 'text/plain',
   size: stats.size,
 });