Last post Nov 26, 2005 04:54 PM by ibasoni
Nov 24, 2005 07:41 AM|A.Khaliq|LINK
TnImage.Save(FilePath + TnFileName + FileExt);
Photo.PostedFile.SaveAs(FilePath + FileName + FileExt);
After this I modified the code and place Photo.PostedFile.SaveAs(FilePath + FileName + FileExt); after 4 line in the above code.
when I am reffering the same file from the hard disk in this code System.Drawing.Image SrcImage = System.Drawing.Image.FromFile(FilePath + FileName + FileExt); it is saying this is not the virtual path.
Can anybody tell me how do I save my file in a folder which is on the web server.
Thanking you in advance.
Nov 25, 2005 06:03 AM|jeepzj|LINK
Nov 26, 2005 04:54 PM|ibasoni|LINK
Maybe this can help you out ..
When you used the save method of the upload control you included a path for the file location
ex : "c:\inetpub\wwwroot\MyWeb\Photos\"
When an error occur saying you need to use a virtual directory that means you should be using it like so :
ex : "/MyWeb/Photos"
Anyway, try to print both of the paths before you're calling the save method and see what is different.
Hope it helps.