Simplify writing of blob output stream