Curt Sampson
2009-06-06 06:47:22
+2
A:
Long problem, short answer: I was missing the binary mode for reading the image under Windows.
f = File.new(filename, File::RDWR)
had to be
f = File.new(filename, "rb")
Patrick Daryll Glandien
2009-06-06 15:44:43
A:
Several options are discussed here:
http://stackoverflow.com/questions/184178/ruby-how-to-post-a-file-via-http-as-multipart-form-data
Evgeny
2010-02-22 17:54:26