embed method
embed
Embeds this resource within its parent by encoding it as Base64. The encoding result will be written to Resource.output_url
.
Returns
This resource so that you can chain calls.
def embed(self, context):
...
Parameter | Type | Description |
---|---|---|
context | ResourceHandlingContext | Resource handling context. |
Exceptions
Exception | Description |
---|---|
InvalidOperationException | Raised if there is no ResourceHandlingContext.parent_resource because there is nowhere to embed the result. |
See Also
- module
aspose.html.saving
- class
Resource