存储和处理图像和视频的最佳实践是什么? [英] What is the best practice for storing and processing images and videos?

查看:35
本文介绍了存储和处理图像和视频的最佳实践是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序(用 WPF/C# 编写)将监控实时视频源,并且需要存储小视频片段和图像静止图像.我对使用用户定义的临时"目录犹豫不决,因为这可能会允许用户修改或删除这些文件,从而导致我的应用程序出现重大问题.或者,我试图将这些项目存储在内存中(图像的 BitmapSource 对象),但找不到视频的等效对象.我应该字节跳动并使用临时目录并简单地使用图像的 URI 还是他们更好的方法?提前致谢!

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!

推荐答案

您不能使用 appdata 存储而不是用户选择的存储吗?

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

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

这篇关于存储和处理图像和视频的最佳实践是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆