From: Rails Crazy Idiot Date: 2011-07-21T01:21:39+09:00 Subject: Re: File copy from Client to Server via web-services Hats Off to you Jesus. Thanks for the help. I got it. Will revert if any other issues Sandy "Jesús Gabriel y Galán" wrote in post #1011860: > On Wed, Jul 20, 2011 at 11:59 AM, Rails Crazy Idiot > wrote: >> the string datatype. >> >> this for .doc and PDF files, this is not working. I think there is >> something I am missing. > > Try writing it as binary: > > File.new('','wb'){|f| f << transferred_file_content} > > (note the 'wb' flag passed to File.new) > > Jesus. -- Posted via http://www.ruby-forum.com/.