My code looks like:
try {
MultipartFile file = uploadFileInfo.getUploadFile();
InputStream inputStream = new BufferedInputStream(file.getInputStream());
BlobProperties props = blockBlobClient.getProperties();
blockBlobClient.upload(inputStream, file.getBytes().length);
} catch (IOException e) {
log.error("Unable to upload blob!", e);
return baseResp;
}
However the file contentType is application/octet-stream, and I need to set it to "image/jpg". How can I do this with the Java SDK?