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


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

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



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