I have a .VTU file with all ASCII data values which loads fine into ParaView. I'm trying to instead write the data as format=binary or format=appended base64 encoded which doesn't seem to be working. I get the error:<div>
<br></div><div><span style=" font-family:'Courier'; font-size:8.25pt; color:#800000;">ERROR: In ..\..\..\src\VTK\IO\vtkXMLDataReader.cxx, line 544</span><p></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Courier'; font-size:8.25pt; color:#800000;">vtkXMLUnstructuredGridReader (0D842188): Cannot read cell data array "material" from PointData in piece 0. The data array in the element may be too short.</p>
<div><br></div><div>Here's the last dataarray input as binary. Correct me if I'm wrong but 0 written as an UInt32 then encoded to base64 is "AAAAAA==". So what am I doing wrong?</div><div><br></div><div>
<div>...</div><div><DataArray type="UInt32" Name="material" format="binary"></div><div>AAAAAA==</div><div></DataArray></div><div>...</div></div><div><br></div><div>Here is my data file (.vtu) as ASCII which works:</div>
<div><br></div><div><div><?xml version="1.0"?></div><div><VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian"></div><div> <UnstructuredGrid></div>
<div> <Piece NumberOfPoints="8" NumberOfCells="1"></div><div> <Points></div><div> <DataArray type="Float32" NumberOfComponents="3" format="ascii"></div>
<div> 0 0 1 2 0 1 2 2 1 0 2 1 0 0 2 2 0 2 2 2 2 0 2 2</div><div> </DataArray></div><div> </Points></div><div> <Cells></div><div> <DataArray type="Int32" Name="connectivity" format="ascii"></div>
<div> 0 1 2 3 4 5 6 7</div><div> </DataArray></div><div> <DataArray type="Int32" Name="offsets" format="ascii"></div><div> 8</div><div> </DataArray></div>
<div> <DataArray type="Int32" Name="types" format="ascii"></div><div> 12</div><div> </DataArray></div><div> </Cells></div><div> <PointData Scalar="stresses"></div>
<div> <DataArray type="Float32" Name="vm_stress" format="ascii"></div><div> 0 1 2 1 0 3 0 0</div><div> </DataArray></div><div> </PointData></div><div> <CellData Scalar="material"></div>
<div> <DataArray type="UInt32" Name="material" format="ascii"></div><div>0</div><div><span class="Apple-tab-span" style="white-space:pre">                </span></DataArray></div><div> </CellData></div>
<div> </Piece></div><div> </UnstructuredGrid></div><div></VTKFile></div><div><br></div></div><div>Thanks in advance,</div><div>Tim</div><div><br></div></div>