Hats Off to you Jesus. Thanks for the help. I got it. Will revert if any other issues

Sandy

"Jess Gabriel y Galn" <jgabrielygalan / gmail.com> wrote in post #1011860:
> On Wed, Jul 20, 2011 at 11:59 AM, Rails Crazy Idiot
> <mail2sanand / gmail.com> 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('<new_file_path>','wb'){|f| f << transferred_file_content}
>
> (note the 'wb' flag passed to File.new)
>
> Jesus.