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.
精彩评论