Image save file to project files

Dani_S 4,341 Reputation points
2024-08-11T14:17:12.46+00:00

Hi,

How do I save image file (png) in runtime to running project.

Thanks,

(net 8).

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,041 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 49,766 Reputation points Microsoft External Staff
    2024-08-13T06:40:48.52+00:00

    Hello,

    How do I save image file (png) in runtime to running project.

    For file saving, there are two types of saving: implicit and explicit.

    For implicit saving, the user doesn't need to manually select the save path of the file, e.g. download, cache file. In this case, you can use FileSystem to save the file directly to the cache folder or application folder. Please refer to File system helpers for more detailed information.

    For display saving, the user needs to choose by himself to which folder the file will be saved. If this is the case, you can use the official FileSaver Api provided by Maui to realize this function.

    Best Regards,

    Alec Liu.


    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.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 73,181 Reputation points
    2024-08-11T16:46:39.2933333+00:00
    0 comments No comments

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.