All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lib.xp.examples.node.getBinary.js Maven / Gradle / Ivy

The newest version!
var nodeLib = require('/lib/xp/node');
var assert = require('/lib/xp/testing');


// BEGIN
// Fetches a node.
var myRepo = nodeLib.connect({
    repoId: 'my-repo',
    branch: 'master'
});

var binaryStream = myRepo.getBinary({
    key: '/myNode',
    binaryReference: 'myBinaryReference'
});

// END


assert.assertNotNull(binaryStream);






© 2015 - 2024 Weber Informatics LLC | Privacy Policy