Which service(blob, file, queue, table) does this issue concern?
blob
Which version of the SDK was used?
12.22.3
What problem was encountered?
I'm trying to upload a file via FileInputStream using the BlobClient.
The following example throws a FileSystemException concerning the file being used by another process.
The stream is closed by the try-with-resource block so that does not seem to be an issue.
Using BlobClient#uploadFromFile with the file instead of the FileInputStream works fine. However in my scenario I only have a FileInputStream that I want to upload.
Which service(blob, file, queue, table) does this issue concern?
blob
Which version of the SDK was used?
12.22.3
What problem was encountered?
I'm trying to upload a file via
FileInputStream
using theBlobClient
. The following example throws aFileSystemException
concerning the file being used by another process. The stream is closed by thetry-with-resource
block so that does not seem to be an issue.Have you found a mitigation/solution?
Using
BlobClient#uploadFromFile
with the file instead of theFileInputStream
works fine. However in my scenario I only have aFileInputStream
that I want to upload.