Hi to everyone, my name is Mathieu Bosi.<br>
<br>
I'm new to vtk and currently I'm facing with this Issue:<br>
I have to load a geric image (i.e. PNG) from a compressed archive and currently I'm able to extract the file to memory.<br>
Is it actually possible to load an image from a &quot;memory file&quot;?<br>
<br>
More precisely I would like to achieve something like this:<br>
<br>
----------------------------<br>
<br>
int size; // how many bytes we'll have in mem_ptr[]<br>
<br>
byte *mem_ptr = feedFromArchive( archive_file_name, file_name_in_archive,&nbsp;&nbsp; &amp;size );<br>
<br>
vtkPNGReader&nbsp; *png_reader&nbsp; = vtkPNGReader::New();<br>
<br>
png_reader-&gt;SetMemFile( mem_ptr, size ); // &lt;-- Versus --&gt; the
file version:&nbsp; png_reader-&gt;SetFileName( img_file_name );<br>
png_reader-&gt;Update();<br>
<br>
----------------------------<br>
<br>
Actually the only (rude) way I've found is to dump from the memory to a
temporary file and then passing that file name as a parameter to the
canonical &quot;vtkPNGReader::SetFileName()&quot; is that the only solution?<br>
<br>
<br>
Thanks in advance for your kind attention<br>
<br>
&nbsp;- Mathieu Bosi -<br>
<br>
<br>
<br>
<br>
&nbsp;<br>
<br>
<br>