# VTK-js API to load .VTK file for volume rendering

**URL:** https://discourse.vtk.org/t/vtk-js-api-to-load-vtk-file-for-volume-rendering/2069
**Category:** Web
**Created:** [November 8, 2019, 1:24am UTC](https://discourse.vtk.org/t/vtk-js-api-to-load-vtk-file-for-volume-rendering/2069 "2019-11-08T01:24:20Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![thewtex](https://discourse.vtk.org/user_avatar/discourse.vtk.org/thewtex/32/55_2.png) [@thewtex](https://discourse.vtk.org/u/thewtex)
#### Post date: [November 8, 2019, 8:29pm UTC](https://discourse.vtk.org/t/vtk-js-api-to-load-vtk-file-for-volume-rendering/2069/8 "2019-11-08T20:29:51Z")

</div>

> [@Sebastien\_Jourdain](#):
>
> Actually itk.js may already have a version of that reader wrapped in WebAssembly which might work directly work inside ParaView Glance.

@Sebastien_Jourdain is correct – you can use the vtk.js [ITKImageReader](https://kitware.github.io/vtk-js/api/IO_Misc_ITKImageReader.html) to read in a volume in VTK legacy file format (binary or ascii) via itk.js.

As a side note, it is now also possible to read it a vtk.js PolyData from a binary or ascii .vtk polydata or unstructured grid file via VTK C++ WebAssembly / itk.js with the vtk.js [ITKPolyDataReader](https://kitware.github.io/vtk-js/api/IO_Misc_ITKPolyDataReader.html).

---

_[View the full topic](https://discourse.vtk.org/t/vtk-js-api-to-load-vtk-file-for-volume-rendering/2069)._
