Simpler modifying a single file in zipped file in stream

Oct 17, 2013 at 4:43 AM
Language : C#

My zipped files are stored in DB and retrieve with byte array (byte[]), and MemoryStream is used to read byte[] to ZipFile. After some changes have been applied to zip entries, and I would like to save it to byte[] again.
byte[] data = GetDataFromDB();
using (var stream = new MemoryStream(data))
using (var zip = ZipFile.Read(stream))
{
    // do some task..

    using(var saveStream = new MemoryStream()){
        zip.Save(saveStream);
        data = saveStream.ToArray();
    }
}
This requires two streams and data is used in both. It's not simple enough.

Is there any simpler way?

Thanks!