Click here to Skip to main content
15,915,160 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have tried this

picEmpProfile.Image = Image.FromFile("\\192.168.2.125\Uploads\9240.jpg")
picEmpProfile.Image = Image.FromFile("\\192.168.2.125\c\inetpub\wwwroot\hr\Uploads\9240.jpg")


pleae help ?
Posted
Updated 22-May-14 19:33pm
v2
Comments
Bh@gyesh 23-May-14 1:32am    
Which error u get?
Try Image.FromFile("\\192.168.2.125\\Uploads\\9240.jpg")
neeraj_ 23-May-14 1:37am    
file location not found error
neeraj_ 23-May-14 1:34am    
i have tried that sir
Bh@gyesh 23-May-14 1:36am    
if this is web application then use server.mappath to get file. It will give you application path.
neeraj_ 23-May-14 1:38am    
this is windows form application
sir
i have use server.mappath that works fine in web but what this time

And If Window

Application.StartupPath + Your Folder Name Or Path
 
Share this answer
 
Web Or Window Application

If Web
Just Use System.startup path it will give you the path from where application is running then just add folder and file name


For Exapmle :-
Server.MapPath("~/FileManager/");


Enjoy
 
Share this answer
 
v2
Comments
neeraj_ 23-May-14 1:41am    
its windows form

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900