Hi
now, when i download the image, the path will be in this format
C:\Users\itdept\Desktop\webmaster\image\Penguins.jpg
how can i make it save only the filename
Penguins.jpg
?
this is my code
if (FileUpload1.PostedFile != null && FileUpload1.PostedFile.FileName != "")
{
byte[] imageSize = new byte[FileUpload1.PostedFile.ContentLength];
HttpPostedFile uploadedImage = FileUpload1.PostedFile;
uploadedImage.InputStream.Read(imageSize, 0, (int)FileUpload1.PostedFile.ContentLength);
string ImagePath = FileUpload1.PostedFile.FileName.Trim();