C
chance
Hello,
I want to add compression to a memory stream and save it in an Oracle
database. This is the code I have so far:
//save the Word document to a binary field,
MemoryStream dataStream = new MemoryStream();
doc.Save(dataStream, SaveFormat.Doc);
//now compress it
GZipStream compressedZipStream = new GZipStream(dataStream,
CompressionMode.Compress);
//now store to document attatchment
row["DOCUMENT"] = compressedZipStream. <---------How can I
dump all the bytes here?
I need help with the fourth line. I was using stream.ToArray() to make
the assignment but that is not available for the compressedZipStream.
How can I store the compressed zip stream in the row?
tia,
chance.
I want to add compression to a memory stream and save it in an Oracle
database. This is the code I have so far:
//save the Word document to a binary field,
MemoryStream dataStream = new MemoryStream();
doc.Save(dataStream, SaveFormat.Doc);
//now compress it
GZipStream compressedZipStream = new GZipStream(dataStream,
CompressionMode.Compress);
//now store to document attatchment
row["DOCUMENT"] = compressedZipStream. <---------How can I
dump all the bytes here?
I need help with the fourth line. I was using stream.ToArray() to make
the assignment but that is not available for the compressedZipStream.
How can I store the compressed zip stream in the row?
tia,
chance.