How to disable cache when image use FromStream?

刘岩 20 Reputation points
2023-07-06T06:57:42.24+00:00

I used ImageSource.FromStream .

but it`s seem has cache policy..

i want to disable it. How can i make it?

thanks

Developer technologies | .NET | .NET MAUI
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2023-07-07T03:51:02.2766667+00:00

    Hello,

    This feature has been requested in the MAUI Github page:Image caching should be configurable for all ImageSources #9773, please track the GitHub link and update when a version that contains this feature.

    You can try to clear the image cache in a folder named image_manager_disk_cache in FileSystem.CacheDirectory after an ImageSource was created.

    Best Regards,

    Leon Lu


    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.
    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

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.