Ainoflow Files icon

Ainoflow Files

Store and manage binary files in Ainoflow object storage

File → Download

AI-generated

Summary

Download a file from Ainoflow object storage using its category and key, returning binary data and metadata.

Inputs

  • category (required) — Category (namespace) for the file
  • key (required) — Key of the file

Output shape

binaryAndJson

The node returns a single item with a binary property containing the decoded file data as a Buffer and a json property containing { category, key, fileName, mimeType }. The fileName is extracted from the content-disposition response header if present; otherwise it defaults to the provided key. The item is paired with its input index for downstream chaining.

Examples

Example 1: Retrieve a PDF stored under category 'reports' with key '2024-q1-report'

Set Category to 'reports' and Key to '2024-q1-report'. The node emits binary data that can be written to disk or passed to another node, plus JSON metadata for identification.

Links

Discussion