ruby - axlsx serialize spreadsheet to string -


For testing purposes, I want to serialize an axlsx spreadsheet into a string. This indicates that it is possible for "output file or string IO" but I do not get documentation or a code sample that tells how to output stringIo. How is this done?

From

: serializing a stream s = package .to_stream () File.open ('example_streamed.xlsx', 'w') {| F | f.write (s.read)}

Comments

Popular posts from this blog

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -

jasper reports - How to center align barcode using jasperreports and barcode4j -

django - CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False -