You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to serialize a stream? For example I want to serialize everything into StringIO object. ZipOutputStream have second parameter in initialize method for that kind of things. We can do something like:
def serialize(output, confirm_valid=false)
# ...
Zip::ZipOutputStream.send(output.is_a?(String) ? :open : :write_buffer) # and so on..
So it will be possible to use Package.new.serialize(StringIO.new(""))
Just got back from our long New Year holiday in Japan, so please accept my apologies for the delay in getting back to you.
Thanks for the tip on using :write_buffer! Right now I am deep inside MS-OFF-CRYPTO and MS-CBF in an attempt to achieve password protection and encryption for xlsx files. Is there any chance you could send in a pull request that uses an IO buffer?
How to serialize a stream? For example I want to serialize everything into StringIO object. ZipOutputStream have second parameter in initialize method for that kind of things. We can do something like:
So it will be possible to use
Package.new.serialize(StringIO.new(""))
More or less duplicate of #3
The text was updated successfully, but these errors were encountered: