# VTK Web - How to update server data source

**URL:** https://discourse.vtk.org/t/vtk-web-how-to-update-server-data-source/3804
**Category:** Web
**Created:** [July 20, 2020, 1:11am UTC](https://discourse.vtk.org/t/vtk-web-how-to-update-server-data-source/3804 "2020-07-20T01:11:20Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mqwang](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mqwang/32/2107_2.png) [@mqwang](https://discourse.vtk.org/u/mqwang)
#### Post date: [July 20, 2020, 1:11am UTC](https://discourse.vtk.org/t/vtk-web-how-to-update-server-data-source/3804/1 "2020-07-20T01:11:20Z")

</div>

I am attempting to run VTK as a server, following this guide: [http://kitware.github.io/paraviewweb/examples/RemoteRenderer.html#Using-VTK-as-server](http://kitware.github.io/paraviewweb/examples/RemoteRenderer.html#Using-VTK-as-server)

My question is how to update server data. I implementation MPR algorithm. After server.start\_webserver, I don’t know how to change the data(dicom) from client.

Can anyone please help me?  
Many thanks!

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [July 20, 2020, 4:33pm UTC](https://discourse.vtk.org/t/vtk-web-how-to-update-server-data-source/3804/2 "2020-07-20T16:33:47Z")

</div>

[This](https://github.com/Kitware/web-project-templates/tree/master/vue-vtkjs-pvw-template/server/vtkpython) would be a more up to date version to look at.

It also show you how to have your own server methods that can be called by the client.

---

<div class="post-metadata">

### Author: ![mqwang](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mqwang/32/2107_2.png) [@mqwang](https://discourse.vtk.org/u/mqwang)
#### Post date: [July 22, 2020, 2:41am UTC](https://discourse.vtk.org/t/vtk-web-how-to-update-server-data-source/3804/3 "2020-07-22T02:41:07Z")

</div>

> [@mqwang](#):
>
> m attempting to run VTK as a server, following this

Thanks for your quick reply!  
I searched the Internet and found that there are very few  
vtk Web document.

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [July 22, 2020, 1:22pm UTC](https://discourse.vtk.org/t/vtk-web-how-to-update-server-data-source/3804/4 "2020-07-22T13:22:40Z")

</div>

Yes most of the work is usually done using ParaView rather than VTK.  
That’s why all the doc and examples tend to use ParaView rather than VTK. But both works the same.

---

<div class="post-metadata">

### Author: ![mqwang](https://discourse.vtk.org/user_avatar/discourse.vtk.org/mqwang/32/2107_2.png) [@mqwang](https://discourse.vtk.org/u/mqwang)
#### Post date: [July 23, 2020, 2:54am UTC](https://discourse.vtk.org/t/vtk-web-how-to-update-server-data-source/3804/5 "2020-07-23T02:54:18Z")

</div>

Thank you very much!
