Skip to content

Does not read the entire stream #24

@knopp

Description

@knopp

It seems that for whatever reason DocumentActivity.openCore only reads from the stream once, assuming it will get all data in one call. This doesn't work correctly when the application producing the content writes it to the pipe in chunks. The documentation for InputStream.read specifically says that the function may read less bytes than expected, but that doesn't mean the end of stream. End of stream is signaled by reading 0 bytes and returning -1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions