Start process from stream

后端 未结 4 1654
北荒
北荒 2021-01-12 04:54

I have a memory stream that contains a PDF file.

Is it possible to view the PDF without saving it to the hard disk ? Process.Start() only takes a path and not a str

4条回答
  •  旧巷少年郎
    2021-01-12 05:22

    Only by implementing your own pseudo-file system in C#, somehow mounting this as a disk in Windows, and having it intercept the file open and stream the contents of your MemoryStream. Absolutely 100% certainly not worth the effort.

提交回复
热议问题