I have an image stored in AWS S3 Bucket
URL url = new URL(urlString);
URI dataUri = null;
if (null != url) {
try (InputStream inStreamGuess = url.openStream();
InputStream inStreamConvert = url.openStream();
ByteArrayOutputStream os = new ByteArrayOutputStream()) {
String contentType = URLConnection.guessContentTypeFromStream(inStreamGuess);
if (null != contentType) {
...
}
but content Type is null