title: WebJob to read from and write to the same Azure blob
body: <p>I am trying to process images uploaded to azure using webjob. I have 2 containers <code>image</code> and <code>thumbs</code>. </p>
  
  <p>Currently, I am reading from <code>image</code> container, creating a thumbnail and writing it to <code>thumbs</code> container using the following code, which works great.</p>
  
  <pre><code>public static void GenerateThumbnail([QueueTrigger("addthumb")] ImageDTO blobInfo,
                  [Blob("images/{Name}", FileAccess.Read)] Stream input, [Blob("thumbs/{Name}")] CloudBlockBlob outputBlob)
      {
          using (Stream output = outputBlob.OpenWrite())
          {
              ConvertImageToThumbnail(input, output, blobInfo.Name);
              outputBlob.Properties.ContentType = GetMimeType(blobInfo.Name);
          }
      }
  </code></pre>
  
  <p>Now, I would also like to resize the main image from <code>image</code> container (if it's too big), compress it and replace the original with it.</p>
  
  <p>Is there a way to read from and write to the same blob?</p>