OutputStream outputStream = uploadFileUtil.getTargetFileOutputStream(monthlyReportFolder, fileName);
I use a method to return the stream object of the SmbFile object based on the Http file path, that is, I obtain the OutputStream. It is known that this file is an html file. Now I want to read this file into a String object, that is, I want to get the source code in this html file.
Please tell me how to operate,
What is the specific instance type pointed to by this outputStream?
Assuming it points to a FileOutputStream, you can use code similar to the following to obtain its source code.