mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
22 lines
538 B
TypeScript
22 lines
538 B
TypeScript
import { Injectable } from '@angular/core';
|
|
import { HttpClient, HttpHeaders, HttpEventType } from '@angular/common/http';
|
|
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class StreamService {
|
|
|
|
constructor(
|
|
private http: HttpClient,
|
|
) {
|
|
window["StreamService"] = this
|
|
}
|
|
|
|
}
|
|
|
|
// const text = 'Hello, World00120301010asdf1002sdf 0fsdfasf0001230 12300!\n';
|
|
// const base64 = btoa(text);
|
|
|
|
// let chunks = window["ChunkService"].generateChunkOfUint8Array(base64, 8)
|
|
// window.StreamService.uploadChunk("", chunks, "peter12", "txt")
|