Skip to content

Instantly share code, notes, and snippets.

@johnnyhalife
Created March 1, 2013 16:29
Show Gist options
  • Save johnnyhalife/5065823 to your computer and use it in GitHub Desktop.
Save johnnyhalife/5065823 to your computer and use it in GitHub Desktop.
def save_image(img_name, image_content, container_name, image_type)
WAZ::Storage::Base.establish_connection(options) do
cont = container(container_name)
cont.store(img_name, image_content, image_type) if cont
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment