hi tom I have resolved the problem by writing the binary data in the local file and transfer it to the ftp.
On 5月14日, 上午2时31分, Tom Z Meinlschmidt <[email protected]> wrote: > "I got the error:No such file or directory" > > it's not problem with binary mode, but with your file :) > > tom > > > > daociyiyou wrote: > > Thank you very much! After changed to passive mode,it works for normal > > image file.But for thumbnail(binary data),i does not.The ftp api does > > not support binary data writing? I got the error:No such file or > > directory > > > On 5月14日, 上午12时13分, Tom Z Meinlschmidt <[email protected]> wrote: > >> try to set passive mode > > >> daociyiyou wrote: > >>> hi Tom > >>> My ftp directory setting is right.ftp api need port to be specified? I > >>> got another error > >>> ### > >>> Net::FTPPermError (500 Illegal PORT command. ): > >>> ### > >>> My codes is > >>> ### > >>> Net::FTP.open('showreelfinder.com') do |ftp| > >>> ftp.login('heywatch','JRnu4bNtXk') > >>> ftp.chdir('thumbnail') > >>> ftp.putbinaryfile('public/images/rails.png',encoded_video.title) > >>> ### > >>> I have tried my best.My server forbids ftp access or my computer > >>> occupied the 21 port? > >>> Ftp really make me like a idiot. > >>> =============================================================================== > >> -- > >> =============================================================================== > >> Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache > >> - experienced RoR/PHP freelancer, available for hire > > >> www.meinlschmidt.comwww.maxwellrender.czwww.lightgems.cz > >> =============================================================================== > > -- > =============================================================================== > Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache > - experienced RoR/PHP freelancer, available for hire > > 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 [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 -~----------~----~----~----~------~----~------~--~---

