(value: string)
| 62 | } |
| 63 | |
| 64 | export function removeBASE64DataHeader(value: string): string { |
| 65 | return value.replace(/^data:(.+);base64,/, ""); |
| 66 | } |
| 67 | |
| 68 | export function buildDataBASE64(type: string, ext: string, buffer: ArrayBuffer): string { |
| 69 | const bytes = new Uint8Array(buffer); |