0

I am creating a desktop application using C# in visual studio. The thing I want is that, how can I get file address of selected file, which is selected using "OpenFileDialog". i.e; if the selected file is an Image, I didn't want to store whole image in database I want to store its address only, so how can I get the address of image? is any body can help me with this?

2
  • Well it is a simple google search actually.. stackoverflow.com/questions/59140175/… Commented Dec 28, 2020 at 7:10
  • after filedialog.show you can get the path of selected file string filepath= Path.GetDirectoryName(FileDialog1.FileName); Commented Dec 28, 2020 at 7:33

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.