From 0b6842e578509390456f7688a17a989bc0df87a6 Mon Sep 17 00:00:00 2001 From: Noel Peden Date: Thu, 16 Jul 2020 08:22:00 -0700 Subject: Binary image read for issue #51 --- lib/axlsx/package.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/axlsx/package.rb b/lib/axlsx/package.rb index 90263b25..124375d4 100644 --- a/lib/axlsx/package.rb +++ b/lib/axlsx/package.rb @@ -164,7 +164,7 @@ module Axlsx end unless part[:path].nil? zip.put_next_entry(zip_entry_for_part(part)) - zip.write IO.read(part[:path]) + zip.write IO.read(part[:path], mode: "rb") end end zip -- cgit v1.2.3