diff options
| author | Noel Peden <[email protected]> | 2020-07-16 08:22:00 -0700 |
|---|---|---|
| committer | Noel Peden <[email protected]> | 2020-07-16 08:22:00 -0700 |
| commit | 0b6842e578509390456f7688a17a989bc0df87a6 (patch) | |
| tree | 735366edeecfdf1e679c810b0efe48ef55dfe230 /lib/axlsx/package.rb | |
| parent | b13c999045411a97a9687a95a3055c809e9428f7 (diff) | |
| download | caxlsx-0b6842e578509390456f7688a17a989bc0df87a6.tar.gz caxlsx-0b6842e578509390456f7688a17a989bc0df87a6.zip | |
Binary image read for issue #51
Diffstat (limited to 'lib/axlsx/package.rb')
| -rw-r--r-- | lib/axlsx/package.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
