Sha256: f916d01892616c936798bd9f03677e071e756d260aab2844a4be6ca8ea5266f1

Contents?: true

Size: 206 Bytes

Versions: 5

Compression:

Stored size: 206 Bytes

Contents

require 'examples_helper'

client = YamlRpc::Client.new('http://localhost:3000/api/basic/')

pp client.upload_image({
  :image   => open('girlfriend.jpg', 'rb').read,
  :save_as => 'julie.jpg'
})

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yamlrpc-1.0.3 examples/rails_basic_upload_image.rb
yamlrpc-1.0.4 examples/rails_basic_upload_image.rb
yamlrpc-1.0.0 examples/rails_basic_upload_image.rb
yamlrpc-1.0.1 examples/rails_basic_upload_image.rb
yamlrpc-1.0.2 examples/rails_basic_upload_image.rb