[Paraview] vtu file format

Brad King brad.king at kitware.com
Thu Jan 5 13:41:24 EST 2006


Thierry Dubuis wrote:
> Thank you very much Brad for these informations.
> I write the write function and it's seems to be Ok.
> But the size input is the size after the encoding.
> 
> Are you sure of "but the size should be before the encoding"

Yes, I'm sure.  I just double-checked the code in the writer.  Basically 
the writing code does not know whether it is writing with base64 
encoding or not.  It just sends data to a stream that does the encoding 
behind the scenes.  The reader works similarly so both ends that care 
about the length do not know about the encoding.

Don't forget that the four size bytes need to be encoded too.

-Brad


More information about the ParaView mailing list