moved GetBinaryData