stream -> InputStream conversion