FileReadResponse

class tracdap.api.FileReadResponse

Response to a request to read a FILE, i.e. retrieve its content from the platform.

See also

readFile

content: bytes

A chunk of the file content

The file content will be sent as a stream of chunks (byte buffers), with one chunk in each message. Empty chunks may be included at any point in the response stream and should be ignored. In particular, TRAC guarantees that the chunk in the first message will always be an empty chunk.

fileDefinition: tracdap.metadata.FileDefinition | None

Definition of the FILE being read