We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 153b89c commit 34fb32eCopy full SHA for 34fb32e
lib/mapi/base.rb
@@ -30,7 +30,8 @@ def data
30
# a.save open(File.basename(a.filename || 'attachment'), 'wb')
31
def save io
32
raise "can only save binary data blobs, not ole dirs" if @embedded_ole
33
- data.each_read { |chunk| io << chunk }
+ data.rewind
34
+ io << data.read(8192) until data.eof?
35
end
36
37
def inspect
0 commit comments