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 "memory file"?<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, &size );<br>
<br>
vtkPNGReader *png_reader = vtkPNGReader::New();<br>
<br>
png_reader->SetMemFile( mem_ptr, size ); // <-- Versus --> the
file version: png_reader->SetFileName( img_file_name );<br>
png_reader->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 "vtkPNGReader::SetFileName()" is that the only solution?<br>
<br>
<br>
Thanks in advance for your kind attention<br>
<br>
- Mathieu Bosi -<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>