The indentation on line 93 is incorrect. But more importantly, you're using && instead of an if statement here, and I think this code is non-trivial and deserves an if statement for clarity.

I assume that you are creating a new blob here because you need to change the type of the blob. If so, please explain that in a comment.  Also, do you really need the type to be set for the blob?  Could you just use the blob that is provided without wrapping it in a new blob?