hammerspoon2-docs
    Preparing search index...

    Function readBytes

    • Read raw bytes for a specific UTI type as a Uint8Array.

      This is the binary counterpart to readData(), avoiding base64 encoding overhead when working with images, PDFs, or SQLite BLOBs.

      Parameters

      • uti: string

        A UTI type string (e.g. "public.png", "com.adobe.pdf")

      Returns Uint8Array<ArrayBufferLike> | null

      The raw bytes for the UTI, or null if the type is not available