Sha256: 6e176c13d69c4798926dd6856c967e464a9ba3bdfdad73a5fae805f1de8b179a

Contents?: true

Size: 261 Bytes

Versions: 4

Compression:

Stored size: 261 Bytes

Contents

require 'rubygems'
require 'vortex_client'

# Upload a binary file to Vortex
vortex = Vortex::Connection.new("https://vortex-dav.uio.no/")
vortex.cd('/brukere/thomasfl/')
content = open("dice.gif", "rb") {|io| io.read }
vortex.put_string("dice_6.gif", content)

Version data entries

4 entries across 3 versions & 1 rubygems

Version Path
vortex_client-0.7.3 examples/upload_image.rb
vortex_client-0.7.2 examples/upload_image.rb
vortex_client-0.7.0 examples/upload_image.rb
vortex_client-0.7.0 examples/upload_image_flymake.rb