On Nov 8, 9:27 am, Guo Yangguang <[email protected]>
wrote:
> My server does not support filesystem writing,so i can not store the
> binary_file data as an image in the file directory,and then send the
> image using Net::FTP#putbinaryfile method.
> Could i send the binary_file directly using
> Net::FTP#putbinaryfile(binary_file, remotefile)?
Looking at the source to net/ftp it doesn't look like putbinaryfile
can do that, however all putbinaryfile seems to do is open up the file
and pass it to storbinary, presumably you could pass any IO object (eg
a StringIO) to storbinary.
Fred
>
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---