Re: [Rails] how to send raw data from a temp file as a base64 value ?

2010-09-14 Thread Philip Hallstrom
> I am trying to send data from a remote file attachment > --- > attachment['url'] = "http://www.mydomain.com/resource/download/54643"; > > I wrote a class RemoteFile < ::Tempfile to fetch to remote data > -- > remote_file = RemoteFile.new(attachment['url'] ) > so, I get a tempfile >>>

[Rails] how to send raw data from a temp file as a base64 value ?

2010-09-14 Thread Erwin
I am trying to send data from a remote file attachment --- attachment['url'] = "http://www.mydomain.com/resource/download/54643"; I wrote a class RemoteFile < ::Tempfile to fetch to remote data -- remote_file = RemoteFile.new(attachment['url'] ) so, I get a tempfile >> # now I would