# Migrating from RemoteRenderer to VtkRenderer.

**URL:** https://discourse.paraview.org/t/migrating-from-remoterenderer-to-vtkrenderer/4179
**Category:** Web Support
**Tags:** python
**Created:** [April 24, 2020, 4:23pm UTC](https://discourse.paraview.org/t/migrating-from-remoterenderer-to-vtkrenderer/4179 "2020-04-24T16:23:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![arosser](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/47e85d/32.png) [@arosser](https://discourse.paraview.org/u/arosser)
#### Post date: [April 24, 2020, 4:23pm UTC](https://discourse.paraview.org/t/migrating-from-remoterenderer-to-vtkrenderer/4179/1 "2020-04-24T16:23:07Z")

</div>

Hello,  
I currently have a working server & client using `RemoteRenderer` & predefined protocols `ParaViewWebMouseHandler`, `ParaViewWebViewPort` and `ParaViewWebViewPortImageDelivery`. I now need the server to be able to push updates to the client, without the client requesting it.

To do so I’ve tried adding protocol `ParaViewWebPublishImageDelivery` to the server and `VtkImageDelivery` to the client.  
I’ve replaced `this.renderer = new RemoteRenderer(this.pvwClient)`  
to `this.renderer = VtkRenderer.newInstance({ client: this.pvwClient });`

With these changes, my server correctly creates the Visualization toolkit window with the render.  
My client creates the `canvas` but does not display the render. Interacting with the blank canvas has effects on the server.

I’m not sure what I’m missing to solve this, would appreciate some help.  
Thanks

---

<div class="post-metadata">

### Author: ![arosser](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/47e85d/32.png) [@arosser](https://discourse.paraview.org/u/arosser)
#### Post date: [April 27, 2020, 3:32pm UTC](https://discourse.paraview.org/t/migrating-from-remoterenderer-to-vtkrenderer/4179/2 "2020-04-27T15:32:40Z")

</div>

Solved my issue. I had set `decode=false` for the `ParaViewWebPublishImageDelivery` protocol but had not set the image encoding for the application. Fixed the issue with the following addition to my server code:  
`self.getApplication().SetImageEncoding(0)`

---

<div class="post-metadata">

### Author: ![jourdain](https://discourse.paraview.org/user_avatar/discourse.paraview.org/jourdain/32/11_2.png) [@jourdain](https://discourse.paraview.org/u/jourdain)
#### Post date: [April 27, 2020, 5:03pm UTC](https://discourse.paraview.org/t/migrating-from-remoterenderer-to-vtkrenderer/4179/3 "2020-04-27T17:03:16Z")

</div>

Glad you figure it out.
