integration layer; merge work on indicators from forks with existing ingestion pipeline

This commit is contained in:
Roberto Treviño Cervantes
2026-10-23 00:00:14 -06:00
parent b0608fdc70
commit d9245fe9b7
194 changed files with 21773 additions and 848 deletions
+10
View File
@@ -0,0 +1,10 @@
/** Base64 of a File's bytes, for JSON endpoints that carry a file. */
export async function fileToBase64(file: Blob): Promise<string> {
const bytes = new Uint8Array(await file.arrayBuffer());
const chunk = 0x8000;
let binary = '';
for (let i = 0; i < bytes.length; i += chunk) {
binary += String.fromCharCode(...bytes.subarray(i, i + chunk));
}
return btoa(binary);
}