How to use the ibm-cloud-sdk-core.contentType function in ibm-cloud-sdk-core

To help you get started, we’ve selected a few ibm-cloud-sdk-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github umple / umple / umpleonline / watson / node_modules / watson-developer-cloud / lib / recognize-stream.js View on Github external
RecognizeStream.getContentType = function (buffer) {
        // the substr really shouldn't be necessary, but there's a bug somewhere that can cause buffer.slice(0,4) to return
        // the entire contents of the buffer, so it's a failsafe to catch that
        return ibm_cloud_sdk_core_1.contentType.fromHeader(buffer);
    RecognizeStream.prototype.initialize = function () {