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

Streaming parts of the string #22

Open
hubertlepicki opened this issue Dec 4, 2020 · 0 comments
Open

Streaming parts of the string #22

hubertlepicki opened this issue Dec 4, 2020 · 0 comments

Comments

@hubertlepicki
Copy link

I don't think this is currently supported, but a nice feature to have would be to be able to stream parts of the string fields that are within JSON.

For example, I now am dealing with a GMail API calls, that allow us to download attachments. Unfortunately these are either protobufs or JSON-encoded, base64-encoded strings.

So we download files like this:

{
  "size": 12345,
  "data": "this is some very long base64-encoded string here, possibly around 30MB in size"
}

I have currently hacked together a dead simple parser that skips ahead in file to appropriate section (using ugh, regexp and binary pattern matching), but it would be actually pretty awesome to properly parse such stream and receive the value of "data" attribute in chunks.

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

No branches or pull requests

1 participant