Finally resolved it. This code works fine for a URL
https://xyz.pk/file/volume.vti
const reader = vtkXMLImageDataReader.newInstance();
reader.setUrl(urlToLoad).then(() => {
reader.loadData().then(() => {
--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html