<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hello everybody,<br><br>I am using VTK 6.1 from Python and would like to load the data for a vtkXMLImageDataReader from a stream/buffer or string rather than by giving a filename.<br><br>I found in the documentation that vtkXMLStructuredDataReader has a method SetReadFromInputString(int) and ReadFromInputStringOn()<br><a href="http://www.vtk.org/doc/nightly/html/classvtkXMLStructuredDataReader.html" target="_blank"><a href="http://www.vtk.org/doc/nightly/html/classvtkXMLStructuredDataReader.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkXMLStructuredDataReader.html</a></a><br>in combination with SetInputString(string) I believed this could work<br><br>But I cannot find those using dir(vtkXMLImageDataReader). I found that there is a function called SafeDownCast(vtkObjectBase) - I am not sure if this is the right approach - but even if I do not know how to use it.<br>Perhaps someone could give me some short example of how to make this task work (preferably in Python but I can 'translate' it as well if C++ code is given)<br><br>Thanks a lot!<br>Markus<br><br><br><br>                                    </div></body>
</html>