fix incorrect stream handling and file reading

Description

None

Environment

None

Assignee

Robert Stephan

Reporter

Paul Rochowski

Labels

None

URL

None

External issue ID

None

Components

Fix versions

Affects versions

Priority

High
Configure