title: Upload CSS file to blob storage with GZIP encoding
body: <p>I am trying to write a css file with GZIP encoding to Azure blob storage. The raw css is being pulled out of a textarea and passed in below as <code>ccsString</code>. The file is being written and I can veiw this in Azure Management Studio, when I try to view the css in Chrome it can't find the file (This web page is not available).</p>
  
  <p>I'm clearly missing something obvious here but I can't see it?</p>
  
  <pre><code>Dim storageAccount As CloudStorageAccount = CloudStorageAccount.Parse("...")
  Dim blobClient As CloudBlobClient = storageAccount.CreateCloudBlobClient()
  Dim container As CloudBlobContainer = blobClient.GetContainerReference("myContainer")
  
  Dim blockBlob As CloudBlockBlob = container.GetBlockBlobReference("keyPath")
  blockBlob.Properties.ContentType = mimeType
  
  Dim byteArray As Byte() = Encoding.UTF8.GetBytes(ccsString)
  Using memoryStream = New IO.MemoryStream(byteArray)
      Using gzip As New GZipStream(memoryStream, CompressionMode.Compress)
         blockBlob.Properties.ContentEncoding = "gzip"
         blockBlob.UploadFromStream(memoryStream)
     End Using
  End Using
  </code></pre>
  
  <p><strong>UPDATE --</strong></p>
  
  <p>I have resolved this problem with the help of @Gaurav-Mantri. I'm also using <a href="http://www.nuget.org/packages/yuicompressor.net/" rel="nofollow noreferrer">YUI Compressor</a> (available as a NUGET package) to minify my css and javascript. Just look at the difference it makes! :)</p>
  
  <p><img src="https://i.stack.imgur.com/Uh7zR.png" alt="enter image description here"></p>