What is the best practice for storing and processing images and videos?

耗尽温柔 提交于 2019-12-11 08:27:27

问题


My application (written in WPF/C#) will monitor a live video source and will need to store small video segments and image stills. I'm hesitant to use a user defined "temp" directory since this would potentially allow a user to modify or delete these files causing major issues with my application. Alternatively, I have attempted to store these items in memory (BitmapSource object for the images) but cannot find an equivalent object for video. Should I byte the bullet and use a temp directory and simply use the image's URI or is their a better approach? Thank you in advance!


回答1:


Couldn't you use the appdata store rather than a user-elected store?

System.Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)



回答2:


Maybe you want to look at Isolated Storage provided by .NET

That should do the job I think..




回答3:


What we do.. Ideally, we store the images on a sercure remote server(like a dvr). when this is not possible. an encyption alog.. is used to store (save and load) the images to prevent any tampering.

-- Michael



来源:https://stackoverflow.com/questions/458307/what-is-the-best-practice-for-storing-and-processing-images-and-videos

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!