
## handle_resource {#aspose.svg.saving.Resource-aspose.svg.saving.ResourceHandlingContext}

This method is responsible for handling the resource. In it you can save the [`Resource`](/svg/python-net/aspose.svg.saving/resource) to the stream or embed it into the parent resource.



```python
def handle_resource(self, resource, context):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| resource | [`Resource`](/svg/python-net/aspose.svg.saving/resource) | The [`Resource`](/svg/python-net/aspose.svg.saving/resource) which will be handled. |
| context | [`ResourceHandlingContext`](/svg/python-net/aspose.svg.saving/resourcehandlingcontext) | Resource handling context. |



### See Also
* module [`aspose.svg.saving.resourcehandlers`](../../)
* class [`Resource`](/svg/python-net/aspose.svg.saving/resource)
* class [`ResourceHandler`](/svg/python-net/aspose.svg.saving.resourcehandlers/resourcehandler)
