# VTK and QDataStream

**URL:** <https://discourse.vtk.org/t/vtk-and-qdatastream/4098>\
**Category:** Development\
**Created:** [August 29, 2020, 2:25pm UTC](https://discourse.vtk.org/t/vtk-and-qdatastream/4098 "2020-08-29T14:25:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cesar\_Cherre](https://discourse.vtk.org/user_avatar/discourse.vtk.org/cesar_cherre/32/2216_2.png) [@Cesar\_Cherre](https://discourse.vtk.org/u/Cesar_Cherre)\
**Post date:** [August 29, 2020, 2:25pm UTC](https://discourse.vtk.org/t/vtk-and-qdatastream/4098/1 "2020-08-29T14:25:14Z")

</div>

It is possible to put a VTK Poly in a custom struct to save in binary using QDataStream? work with a custom extension .VSprj and need include .obj into my extension

---

<div class="post-metadata">

**Author:** ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)\
**Post date:** [September 1, 2020, 3:06pm UTC](https://discourse.vtk.org/t/vtk-and-qdatastream/4098/2 "2020-09-01T15:06:39Z")

</div>

Hi, Cesar,

I think you want something called serialization. Googling for “VTK serialize” you get many ways to achieve this.

regards,

Paulo
