When compressing data with the DeflateStream class, how do you specify a stream into which to write compressed data?

When compressing data with the DeflateStream class, how do you specify a stream into which to write compressed data?

When compressing data with the DeflateStream class, how do you specify a stream into which to write compressed data?

A.
Set the BaseStream property with the destination stream, and set the CompressionMode property to Compression.

B.
Specify the stream to write into the DeflateStream object is created (for example, in the constructor).

C.
Use the Write method of the DeflateStream class.

D.
Register for the BaseSream event of the DeflateStream class.



Leave a Reply 1

Your email address will not be published. Required fields are marked *


seenagape

seenagape

Correct answer is B