We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When reading Blob fields, it only reads up to the first NULL character. I am not sure whether this is intended behavior
However, changing data to raw in the _deserialize() Method of BytesField fixes the issue.
data
raw
_deserialize()
BytesField
class BytesField(Field): def _deserialize(self, pxval_value): return pxval_value.str.val.data[:pxval_value.str.len] # Replace with: # return pxval_value.str.val.raw[:pxval_value.str.len] def _serialize_to(self, value, pxval_value): pxval_value.str.val = value pxval_value.str.len = len(value)
Be careful when printing the Blobs though. Took me quite some time to print 40k Bytes of binary String...
I would do a Pull Request but cant currently do that.
I hope this info helps someone.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When reading Blob fields, it only reads up to the first NULL character. I am not sure whether this is intended behavior
However, changing
data
toraw
in the_deserialize()
Method ofBytesField
fixes the issue.Be careful when printing the Blobs though. Took me quite some time to print 40k Bytes of binary String...
I would do a Pull Request but cant currently do that.
I hope this info helps someone.
The text was updated successfully, but these errors were encountered: