def create_blob(credentials, bucket_id, blob_id, blob_data, opts={})
azure_connect(credentials)
opts.gsub_keys("HTTP_X_Deltacloud_Blobmeta_", "x-ms-meta-")
safely do
the_bucket = WAZ::Blobs::Container.find(bucket_id)
the_bucket.store(blob_id, blob_data[:tempfile], blob_data[:type], opts)
end
Blob.new( { :id => blob_id,
:bucket => bucket_id,
:content_lengh => blob_data[:tempfile].length,
:content_type => blob_data[:type],
:last_modified => '',
:user_metadata => opts.gsub_keys('x-ms-meta-','')
} )
end