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

binary data type in fields with JSON serialization #22

Open
pkieltyka opened this issue Feb 7, 2019 · 1 comment
Open

binary data type in fields with JSON serialization #22

pkieltyka opened this issue Feb 7, 2019 · 1 comment
Projects

Comments

@pkieltyka
Copy link
Member

pkieltyka commented Feb 7, 2019

we like clean and simple JSON for serialization. But, how can we include a binary data field within a request or response object...? such as a small image, or something small. Would be interesting to think about chunk`ing responses too..

maybe https://github.com/PsychoLlama/bin-json has some ideas.

@pkieltyka pkieltyka created this issue from a note in v1 (Backlog) Feb 7, 2019
@VojtechVitek
Copy link
Contributor

Images can be represented by base64 encoded URL data scheme, ie. data:image/png;base64,{BASE_64_DATA}.

Were you thinking about some special webrpc data type that would do the binary-base64 conversion automatically?

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

No branches or pull requests

2 participants