Write in binmode

This commit is contained in:
Stanko K.R.
2026-02-02 19:46:20 +01:00
parent 4b70c1cc3b
commit 4b7bbda222
+1
View File
@@ -45,6 +45,7 @@ class ZipFile
# needs a write-based stream. The TransferManager's upload_stream
# yields a writable IO that we can stream directly to.
service.send(:upload_stream, key: blob.key, part_size: 100.megabytes) do |write_stream|
write_stream.binmode
writer.stream_to(write_stream)
yield writer
writer.close