Download Bytes
- async AsyncCogniteClient.data_modeling.files.download_bytes(
- node_id: NodeId | tuple[str, str],
Download a file as bytes by instance ID.
- Parameters:
node_id (NodeId | tuple[str, str]) – Instance ID of the file.
- Returns:
The file content.
- Return type:
bytes
Examples
Download a file’s content into memory by instance ID:
>>> from cognite.client import CogniteClient >>> from cognite.client.data_classes.data_modeling import NodeId >>> client = CogniteClient() >>> content = client.data_modeling.files.download_bytes(NodeId("my-space", "my-file"))