YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(markdown): use ArrayBuffer-backed image bytes
Louis Beaumonta49b49f57d2c
diff --git a/apps/screenpipe-app-tauri/components/markdown/local-markdown-image.tsx b/apps/screenpipe-app-tauri/components/markdown/local-markdown-image.tsxindex 26a748af8..89620379b 100644--- a/apps/screenpipe-app-tauri/components/markdown/local-markdown-image.tsx+++ b/apps/screenpipe-app-tauri/components/markdown/local-markdown-image.tsx@@ -7,9 +7,9 @@ import { useEffect, useState } from "react";import { getMediaFile } from "@/lib/actions/video-actions";import { imageMimeFromName } from "@/components/meeting-notes/image-utils";-function bytesFromBase64(data: string): Uint8Array {+function bytesFromBase64(data: string): Uint8Array<ArrayBuffer> {const binary = atob(data);- const bytes = new Uint8Array(binary.length);+ const bytes = new Uint8Array(new ArrayBuffer(binary.length));for (let i = 0; i < binary.length; i++) {bytes[i] = binary.charCodeAt(i);}