Converting array buffer to json/string/base64. Including works with Cyrillic.
npm:
npm i array-buffer-to-data
bower:
bower i array-buffer-to-data
- Include
src/angular/array-buffer-to-data.js
- Include
array-buffer-to-data
as a module in your app. - In the right place, specify the dependency on factory
arrayBufferToData
angular.module('app', ['array-buffer-to-data']);
app.controller('Ctrl', ['arrayBufferToData', function(arrayBufferToData) {
arrayBufferToData.toJSON(ArrayBuffer);
}]);
- Include
src/native/array-buffer-to-data.js
arrayBufferToData.toJSON(ArrayBuffer);
- Include
src/native/array-buffer-to-data.js
var arrayBufferToData = require('array-buffer-to-data');
arrayBufferToData.toJSON(ArrayBuffer);