lib/mapi/base.rb
# with new stream work, its possible to not have the whole thing in memory at one time,
# just to save an attachment
#
# a = msg.attachments.first
# a.save open(File.basename(a.filename || 'attachment'), 'wb') 
with new stream work, its possible to not have the whole thing in memory at one time,
just to save an attachment


with new stream work its possible to not have the whole thing in memory at one time just to save an attachment
def save io
			raise "can only save binary data blobs, not ole dirs" if @embedded_ole
			data.rewind
			io << data.read(8192) until data.eof?
		end
def save io raise "can only save binary data blobs, not ole dirs" if @embedded_ole data . rewind io << data . read ( 8192 ) until data . eof? end
with new stream work, its possible to not have the whole thing in memory at one time,
just to save an attachment
with new stream work its possible to not have the whole thing in memory at one time just to save an attachment
io