Resource class

Resource class

This class describes a resource and provides methods for processing it.

The Resource type exposes the following members:

Properties

PropertyDescription
statusReturns the current status of the resource.
mime_typeReturns the MimeType of this resource. Can be if the resource was not found.
original_urlReturns a URL indicating where this resource was located.
original_referenceReturns a string containing the original reference to this resource.
output_urlGets or sets the URL indicating where the resource will be located after processing.

Methods

MethodDescription
saveSaves the resource to the provided stream.
embedEmbeds this resource within its parent by encoding it as Base64. The encoding result will be written to Resource.output_url.
with_output_urlSpecifies the new URL indicating where the resource will be located after processing.

See Also