@inrupt/solid-client
    Preparing search index...

    Function getFile

    • Retrieves a file from a URL and returns the file as a blob.

      For example:

      const fileBlob = await getFile("https://pod.example.com/some/file", { fetch: fetch });
      

      For additional examples, see Read/Write Files.

      Parameters

      • fileUrl: string | Url

        The URL of the file to return

      • Optionaloptions: Partial<GetFileOptions>

        Fetching options: a custom fetcher and/or headers.

      Returns Promise<Blob & WithResourceInfo & {}>

      The file as a blob.