Skip to content
New issue

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

Encode bytes as base64 rather than hex #8

Open
wants to merge 1 commit into
base: dev-usfd-changes
Choose a base branch
from

Conversation

ianroberts
Copy link
Member

Other JSON-to-object mapping libraries (e.g. Jackson in Java) natively map byte array types using base64, as does the "binary" field type when indexing in Elasticsearch.

Other JSON-to-object mapping libraries (e.g. Jackson in Java) natively map byte array types using base64, as does the "binary" field type when indexing in Elasticsearch
@ianroberts ianroberts requested a review from muneerahp May 11, 2023 15:19
@ianroberts
Copy link
Member Author

Hmm, maybe it's not as simple as I thought - base64 makes sense for "bytes" type fields that truly represent binary blobs, but for things like file_reference and fields that represent hash values they might want to stay as hex strings...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant