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.