title: How to set content type using Azure Java azure-storage-blob SDK
body: <p>My code looks like:</p>
  <pre><code>    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(&quot;Unable to upload blob!&quot;, e);
          return baseResp;
      }
  </code></pre>
  <p>However the file contentType is application/octet-stream, and I need to set it to &quot;image/jpg&quot;. How can I do this with the Java SDK?</p>