code: function dataViewToArrayBuffer(str) {
      var bufView = new Uint8Array(dv.byteLength);
      for (var i = 0; i < bufView.length; i++) {
        bufView[i] = dv.getUint8(i);
      }
      return bufView.buffer;
    }
docs: Converts a DataView to an ArrayBuffer