Related to ISSUE-45086: InputStreams are not being closed on MimeTypeUtil methods
File InputStreams are not being closed in MimeTypeUtil detection methods, to fix this, those have been introduced in try-with-resources to be auto-closed after usage.
File InputStreams are not being closed in MimeTypeUtil detection methods, to fix this, those have been introduced in try-with-resources to be auto-closed after usage.