Currently, when using encoded data, we will open the base64 data and convert to a MemoryStream which is saved to Data. However, if the data is compressed, then we create a new stream and set Data to it without closing the original MemoryStream.
This should be fixed up in some way, either explicit closing the MemoryStream or not reusing the Data variable.