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

How do you convert Android InputStream to RawStream #401

Open
NLLAPPS opened this issue Dec 13, 2024 · 0 comments
Open

How do you convert Android InputStream to RawStream #401

NLLAPPS opened this issue Dec 13, 2024 · 0 comments

Comments

@NLLAPPS
Copy link

NLLAPPS commented Dec 13, 2024

Hi and thank you for a great library. Since okio replaced by kotlinx.io, how one would convert Android InputStream to RawStream?

For example with okio it was as simple as FileSource(name = "name", source = inputStream.source()). I see that there is an okio.Source.asKotlinxIoRawSource() at https://github.com/Kotlin/kotlinx-io/blob/03eb9ba16fb2d13897259c64c323af061050ee85/integration/kotlinx-io-okio/common/src/OkioAdapters.kt

Would it be the way to go?

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