开发者

download a file to project resources

开发者 https://www.devze.com 2023-02-25 11:43 出处:网络
i use Visua开发者_开发百科l Basic 2008. hello is it possible to download a file directly to project resources, or to import file to resources on running vb 2008 application.

i use Visua开发者_开发百科l Basic 2008. hello is it possible to download a file directly to project resources, or to import file to resources on running vb 2008 application.

for example

i have : www.example.com/file.ext

and i want to download it, but not to C:\ or C:\ drives, but to My.Resources.file... is it possible?

thank you


This isn’t possible. Resources in your program are fixed: once your program is running, it cannot modify its resources.

Apart from that you can use the WebClient.DownloadData method to download data into a variable without saving it to disc.

0

精彩评论

暂无评论...
验证码 换一张
取 消