Мне нужно создать zip файл, содержащий документы, которые существуют на сервере. Для этого я использую класс пакета .Net, и для создания нового пакета (который является zip файлом) у меня должен быть либо путь к физическому файлу, либо потоку. Я пытаюсь не создавать фактический файл, который будет zip файлом, а просто создаст поток, который будет существовать в памяти или что-то еще.
Мой вопрос заключается в том, как вы создаете экземпляр нового потока (т.е. FileStream, MemoryStream и т.д.) без создания физического файла.