ruby-on-railsruby-on-rails-4binaryrubyxl

how to convert RubyXL workbook to binary in rails


I used gem RubyXL to export something to a workbook, and I do not want to use workbook.write() to create a file, but want to save the workbook to mysql DB as binary.

how can i convert the RubyXL workbook to binary?


Solution

  • I find a solution just now it is

    workbook.stream.read