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):
    ...
ParameterTypeDescription
contextResourceHandlingContextResource handling context.

Exceptions

ExceptionDescription
InvalidOperationExceptionRaised if there is no ResourceHandlingContext.parent_resource because there is nowhere to embed the result.

See Also