更新时间:2023-08-19 23:23:28
图拉西兰!
我发现了这个有趣的链接:
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.