On Nov 10, 2:23 pm, jeb <jo...@ibiz.se> wrote: > That worked well in 1.8.7, but not in 1.9.2. >
Dunno what are you doing, but works fine for me: C:\Users\Luis>ruby -v ruby 1.9.2p290 (2011-07-09) [i386-mingw32] C:\Users\Luis>irb irb(main):001:0> require "base64" => true irb(main):002:0> content = File.binread(".TransferManager.db"); nil => nil irb(main):003:0> content.length => 15388 irb(main):004:0> encoded = Base64.encode64(content); nil => nil irb(main):005:0> encoded.length => 20862 The 'nil' at the end is to avoid the entire binary file output in this example. PS: there is no "File.binread" in Ruby 1.8.7, so dunno how that worked. -- Luis Lavena -- 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.