i have saved a link a database which looks like this
~\quizes\314757_499034200123763_1508831626_a.jpg
i used the following code to extract the filename
Uri uri = new Uri(BulletedList1.DataValueField.ToString());
string filename=Path.GetFileName(uri.LocalPath);
but it gives the following error The format of the URI could not be determined.