<div dir="ltr"><div>Hello,</div><div><br></div><div>I am writing a python application which requires to send a stored compressed vtkImageData by block to a client.</div><div>I read on <a href="https://www.vtk.org/Wiki/VTK_XML_Formats">this</a> (<a href="https://www.vtk.org/Wiki/VTK_XML_Formats">https://www.vtk.org/Wiki/VTK_XML_Formats</a>) link (and by looking at the vtkXMLWriter source) that the actual data array is preceded by some header. Either :<br>- [#bytes]<i>[DATA] </i>if the data is not compressed</div><div>- [#blocks][#u-size][#p-size][#c-size-1][#c-size-2]...[#c-size-#blocks]<i>[DATA] </i>if it is compressed.</div><div><br></div><div>My problem : I did not succeed in manually reading those values, either in the uncompressed (binary or ascii) or compressed case. Does anyone have any pointer or example on how to do that ? I could not find a lot of documentation on the subject.<br></div><div><br></div><div>Also side question : I am not sure the ZLib compressor uses a full flush. If that is not the case, it seems impossible to read only one random data block. Am I right ?</div><div><br></div><div>Thanks a lot.</div><div>Bests.<br></div><div><br></div><div><div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Edern Haumont<b><br></b></div><a href="mailto:edern.haumont@kitware.com" target="_blank"><u><i>edern.haumont@kitware.com</i></u></a><br></div></div></div></div></div>