ArchiveSave Method (Stream, ArchiveSaveOptions) |
Saves archive to the stream provided.
Namespace:
Aspose.Zip
Assembly:
Aspose.Zip (in Aspose.Zip.dll) Version: 22.3
Syntaxpublic void Save(
Stream outputStream,
ArchiveSaveOptions saveOptions = null
)
Public Sub Save (
outputStream As Stream,
Optional saveOptions As ArchiveSaveOptions = Nothing
)
public:
void Save(
Stream^ outputStream,
ArchiveSaveOptions^ saveOptions = nullptr
)
member Save :
outputStream : Stream *
?saveOptions : ArchiveSaveOptions
(* Defaults:
let _saveOptions = defaultArg saveOptions null
*)
-> unit
Parameters
- outputStream
- Type: System.IOStream
Destination stream. - saveOptions (Optional)
- Type: Aspose.Zip.SavingArchiveSaveOptions
Options for archive saving.
Exceptions
RemarksoutputStream must be writable.
Examplesusing (FileStream zipFile = File.Open("archive.zip", FileMode.Create))
{
using (var archive = new Archive())
{
archive.CreateEntry("entry.bin", "data.bin");
archive.Save(zipFile);
}
}
See Also