Hi Guys,
I've got an outside FTP library that either accepts a filename or an inputstream when uploading a file.
It has an append function that will let me append data to an existing file but that requires using an inputstream as the data parameter (instead of input file).
How can I convert a string, say "hello" to an InputStream so that I can pass it as a parameter to that function?
Thanks!
I've got an outside FTP library that either accepts a filename or an inputstream when uploading a file.
It has an append function that will let me append data to an existing file but that requires using an inputstream as the data parameter (instead of input file).
How can I convert a string, say "hello" to an InputStream so that I can pass it as a parameter to that function?
Thanks!