I have a String[] array and I need to convert it to InputStream.
I've seen Byte[] -> InputStream and String -> InputStream, but not this. Any tips?
You can construct a merged String with some separator and then to byte[] and then to ByteArrayInputStream.
Here's a way to convert a String to InputStream in Java.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With