function downloadImage
downloadImage(filename: string): Promise<Uint8Array | null>

Download and decrypt a file. Returns the decrypted bytes, or null if the file does not exist.

Parameters

filename: string

Return Type

Promise<Uint8Array | null>

Usage

import { downloadImage } from "docs/embed.ts";