将图像存储在临时文件夹中 [英] storing image in a temparary folder
本文介绍了将图像存储在临时文件夹中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要从ms-access数据库检索图像并将它们存储在一个临时文件夹中.
有可能吗?
请问有人可以帮我吗?
在此先感谢
I need to retreive images from ms-access database and store them in a temporary folder.
Is it possible?
Please can any one help me?
Thanks in advance
推荐答案
图拉西兰!
我发现了这个有趣的链接:
http://programming.top54u. com/post/Store-and-Display-Images-from-MS-Access-Database-Using-C-Sharp.aspx
该站点具有指向可下载项目文件的链接.您应该检查一下它,因为它似乎完全可以满足您的需求.
干杯
Manfred
Hi Tulasiram!
I found this interesting link:
http://programming.top54u.com/post/Store-and-Display-Images-from-MS-Access-Database-Using-C-Sharp.aspx
The site has a link to a downloadable project file. You should check that out as it seems to do exactly what you''re looking for.
Cheers
Manfred
请参见 ^ ].
首先,创建文件夹...
First, create you folder...
private string GetTempDirectory()
{
string path = Path.GetRandomFileName();
Path.Combine(Path.GetTempPath(), path);
Directory.CreateDirectory(path);
return path;
}
这将创建目录,但不会创建文件.
您将图像的副本保存到此目录.
完成操作后,请删除目录.
This will create the directory, but not a file to go in.
You save copies of the images to this directory.
Once finished with them, then delete the directory.
Directory.Delete(path,true);
希望有帮助.
Hope that helps.
这篇关于将图像存储在临时文件夹中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文