resource_stream property

ResourceSavingArgs.resource_stream property

Allows to specify the stream where the resource will be saved to.

@property
def resource_stream(self) -> io.BytesIO:
    ...

@resource_stream.setter
def resource_stream(self, value: io.BytesIO):
    ...

Remarks

This property allows you to save resources to streams instead of files.

The default value is None. When this property is None, the resource will be saved to a file specified in the ResourceSavingArgs.resource_file_name property.

Using IResourceSavingCallback you cannot substitute one resource with another. It is intended only for control over location where to save resources.

See Also