<div dir="ltr">Hi David, all,<div><br><div>I'm trying to re-write a C++ VTK method used in VTK web, <span style="font-size:12.8px">to get rid of a base-64 string encoding of an image - so the C++ method I'm working on returns a buffer in a vtkUnsignedCharArray* to python. As a result, the python wrapping seems to return a 'str' type in both Python 2 and 3.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">The new result I want to return is a binary buffer (a raw JPG) - I tried returning the new result with the same type, and it gets cut off at the first null in the buffer. Is there a vtk return type should I be using instead?</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">I've seen 'numpy_support' possibly used for this (and David D says he's used it in Cinema) but I'm not sure how it applies.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks!</span></div><div><span style="font-size:12.8px">Aron</span></div></div></div>