Skip to main content

StreamingBody Schema

A binary data payload.

Type​

PropertyValue
Kindblob

In Python, StreamingBody is represented as bytes or a file-like object (e.g., io.BytesIO, an open file handle, or an httpx.Response.iter_bytes() stream).

Example​

# Upload from a file
with open("payload.bin", "rb") as f:
result = resource.upload(body=f)

# Or from bytes in memory
result = resource.upload(body=b"\x00\x01\x02")

Used by operations that upload or return binary content (e.g., certificate uploads, log downloads, file exports).