I need to get the current state as an IO - ready to be uploaded. I can see the stream method when I look at the Document class but get the following error when I try and call it:
NoMethodError:
undefined method `stream' for #<Docx::Document:0x000055fa7bb472a8>
Example of what I am trying to do:
doc = Docx::Document.open(downloaded_file)
# make changes to doc.zip
stream = doc.stream
I need to get the current state as an IO - ready to be uploaded. I can see the stream method when I look at the Document class but get the following error when I try and call it:
Example of what I am trying to do: