From: Albert Schlef Date: 2009-05-11T17:06:30+09:00 Subject: Re: File over tcp? with out using net/ftp Bigmac Turdsplash wrote: > i have tested with this and it works with text files but thats it... > image files and executable's dont function after being sent threw the > socket...you said i should open files in binary mode? how can i do this > and then after words will the files function properly? You're probbaly using Windows. Instead of: > file = File.new('file.jpg') > destFile = File.new('file-received.jpg', 'w') Do: file = File.new('file.jpg', 'b') destFile = File.new('file-received.jpg', 'wb') -- Posted via http://www.ruby-forum.com/.