arrayBufferToBase64()

in src/service/helper.ts [99:104]


  arrayBufferToBase64(buffer: any) {
    const bytes = [].slice.call(new Uint8Array(buffer))
      .reduce((acc, next) => (`${acc}${String.fromCharCode(next)}`), "");

    return `data:image/svg+xml;base64,${btoa(bytes)}`;
  }