开发者

Image.FromFile with a username password. C#

开发者 https://www.devze.com 2022-12-08 23:28 出处:网络
Ok we need to load a file on the network, (Files are stored seperatly from the webserver). Is t开发者_高级运维here anyways we can specify a network userid a password when calling the function below?

Ok we need to load a file on the network, (Files are stored seperatly from the webserver).

Is t开发者_高级运维here anyways we can specify a network userid a password when calling the function below?

Image.FromFile("\IPADDRESSHERE\GroupPictures\");


See sample on impersonation in MSDN. See also this post about possible security problems.


Nope.

Open it using a file stream, and use Image.FromStream intsead.

0

精彩评论

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