"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 <to...@meinlschmidt.org> 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.com www.maxwellrender.cz www.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 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