how to create StreamedFile?

mc 4,576 Reputation points
2023-11-20T01:14:07.8033333+00:00

CreateStreamedFileAsync will make the file readonly?

how to create file that can write?

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
793 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jeanine Zhang-MSFT 9,771 Reputation points Microsoft Vendor
    2023-11-20T03:26:22.48+00:00

    Hello,

    Welcome to Microsoft Q&A!

    CreateStreamedFileAsync Method creates a StorageFile to represent the specified stream of data.This method lets the app produce the data on-demand by specifying a function to be invoked when the StorageFile that represents the stream is first accessed.

    Use StreamedFileDataRequestedHandler produce the data stream represented by the returned StorageFile and lets the app produce data on-demand instead of writing the contents of the file at creation time.

    For more details about how to create and write a file with StorageFile. I suggest you could refer to the Doc:Create, write, and read a file

    Thank you.

    Jeanine


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.