remove ftp:// from you ftp_host variable

daociyiyou wrote:
> I want write image(thumbnail is binary data) to
> ftp://showreelfinder.com/www.showreelfinder.com/web/site/temp/uploads/heywatch
> directory. But i got error like following:
> ####
> SocketError (getaddrinfo: Name or service not known)
> ####
> My writing codes like this:
>  ####
>   ftp_host="ftp://showreelfinder.com";
>   ftp=Net::FTP.new(ftp_host,"heywatch","JRnu4bNtXl")
>   ftp.login
>   ftp.putbinaryfile(thumbnail,"www.showreelfinder.com/web/site/temp/
> uploads
>   /heywatch"+encoded_video.title)#thumbnail is binary data
>   ftp.close
> ###
>   puttextfile(localfile, remotefile = File.basename(localfile)) {|
> line| ...},the localfile params can not be  binary data? or
> remotefile must exist on ftp server?
> 
> 
> Thanks!
> 

-- 
===============================================================================
Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache

www.meinlschmidt.com  www.maxwellrender.cz  www.lightgems.cz
===============================================================================

--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to