(
		data: ty.Union[bytes, gen_bytes_t], *, chunk_size: int = default_chunk_size
)
return stream.body(), stream.headers()
Gets a buffered generator for streaming binary data.

	Returns a buffered generator which encodes binary data as
	:mimetype:`multipart/form-data` with the corresponding headers.

	Parameters
	----------
	data
		The data bytes to stream
	chunk_size
		The maximum size of each stream chunk
Gets a buffered generator for streaming binary data.
Gets a buffered generator for streaming binary data .
def stream_bytes(
		data: ty.Union[bytes, gen_bytes_t], *, chunk_size: int = default_chunk_size
) -> ty.Tuple[gen_bytes_t, ty.Dict[str, str]]:
	"""Gets a buffered generator for streaming binary data.

	Returns a buffered generator which encodes binary data as
	:mimetype:`multipart/form-data` with the corresponding headers.

	Parameters
	----------
	data
		The data bytes to stream
	chunk_size
		The maximum size of each stream chunk
	"""
	stream = BytesFileStream(data, chunk_size=chunk_size)
	return stream.body(), stream.headers()
def stream_bytes ( data : ty . Union [ bytes , gen_bytes_t ] , * , chunk_size : int = default_chunk_size ) -> ty . Tuple [ gen_bytes_t , ty . Dict [ str , str ] ] : stream = BytesFileStream ( data , chunk_size = chunk_size ) return stream . body ( ) , stream . headers ( )