summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/package.rb
diff options
context:
space:
mode:
authorDan DeBruler <[email protected]>2021-12-28 13:33:54 -0500
committerDan DeBruler <[email protected]>2021-12-28 13:33:54 -0500
commit4278f88e5faa8e733409bb4256a01cc510f87570 (patch)
treede7f9fd3e722d25de1dace1fb86238c85609bcfd /lib/axlsx/package.rb
parent6702f7e5c4a7494ab5007a0e42bbec2e760bcad3 (diff)
downloadcaxlsx-4278f88e5faa8e733409bb4256a01cc510f87570.tar.gz
caxlsx-4278f88e5faa8e733409bb4256a01cc510f87570.zip
Return output stream in binmode
Diffstat (limited to 'lib/axlsx/package.rb')
-rw-r--r--lib/axlsx/package.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/package.rb b/lib/axlsx/package.rb
index d9865a48..1b30c815 100644
--- a/lib/axlsx/package.rb
+++ b/lib/axlsx/package.rb
@@ -124,7 +124,7 @@ module Axlsx
def to_stream(confirm_valid=false)
return false unless !confirm_valid || self.validate.empty?
Relationship.initialize_ids_cache
- zip = write_parts(Zip::OutputStream.new(StringIO.new, true))
+ zip = write_parts(Zip::OutputStream.new(StringIO.new.binmode, true))
stream = zip.close_buffer
stream.rewind
stream