# File lib/deltacloud/drivers/rackspace/rackspace_driver.rb, line 262
  def create_blob(credentials, bucket_id, blob_id, blob_data, opts={})
    cf = cloudfiles_client(credentials)
    #insert ec2-specific header for user metadata ... X-Object-Meta-KEY = VALUE
    opts.gsub_keys("HTTP_X_Deltacloud_Blobmeta_", "X-Object-Meta-")
    opts['Content-Type'] = blob_data[:type]
    object = nil
    safely do
      #must first create the object using cloudfiles_client.create_object
      #then can write using object.write(data)
      object = cf.container(bucket_id).create_object(blob_id)
      #blob_data is a construct with data in .tempfile and content-type in {:type}
      res = object.write(blob_data[:tempfile], opts)
    end
    Blob.new( { :id => object.name,
                :bucket => object.container.name,
                :content_length => blob_data[:tempfile].length,
                :content_type => blob_data[:type],
                :last_modified => '',
                :user_metadata => opts.select{|k,v| k.match(/^X-Object-Meta-/i)}
              }
            )
  end