开发者

Image.FromFile with a username password. C#

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜