Skip to content

getDocumentContent takes too long to return when file is too large #91

@alexcmgit

Description

@alexcmgit

Describe the bug

getDocumentContent function "crash" the app if the document is too long.

This happens when trying to read apk files.

To Reproduce

Open the example app and try to click over an apk file card.

Expected behavior

There's some way to asynchronously read the file contents.

Screenshots

Not applicable.

Additional context

Possible solutions:

  • Maybe we can refactor the current function to return a Stream that emits a new event right after each new line rather of reading all lines then returning.
  • Do the same above but for a new function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions