Thanks. But i got another error:

####
Net::FTPPermError (500 Unknown command. ):
####

So i changed the codes according to my guess:

####
  ftp_host="showreelfinder.com"
  ftp=Net::FTP.new(ftp_host,"heywatch","JRnu4bNtXl")
  ftp.login
  ftp.putbinaryfile(thumbnail,"ftp://showreelfinder.com/
www.showreelfinder.com/web/site/temp/uploads/heywatch/"+encoded_video.title)
  ftp.close
####

I still get the error:

####
Net::FTPPermError (500 Unknown command. ):
####
I want write the binary data(thumbnail) to the ftp address ("ftp://
showreelfinder.com/www.showreelfinder.com/web/site/temp/uploads/
heywatch/"+encoded_video.title),the encoded_video.title file does not
exist on ftp server.
so how do i manage?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to