79180205

Date: 2024-11-12 07:46:02
Score: 0.5
Natty:
Report link

According to the Doc:How to: Convert between .NET Framework and Windows Runtime streams

.NET Framework streams don't support cloning, even after conversion. If you convert a .NET Framework stream to a Windows Runtime stream and call GetInputStreamAt or GetOutputStreamAt, which call CloneStream, or if you call CloneStream directly, an exception occurs.

You need to convert a System.IO.Stream to a Windows.Storage.Streams.IRandomAccessStream. You could refer to the thread: https://stackoverflow.com/a/48152204

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • No code block (0.5):
  • High reputation (-1):
Posted by: Jeaninez - MSFT