D
Darrel
I have a working function that grabs an image from a FILE form field and
get's the filename from it:
imageToCheck = myFormField.postedfile
checkedFileName = Mid(imageToCheck.FileName, InStrRev(imageToCheck.FileName,
"\") + 1)
I now want to grab the filename of an image that is already on the server:
sourceImage = System.Drawing.Image.FromFile("/my/file.jpg")
However, sourceImage.FileName is not valid. I've been googling, but am not
quite sure how to grab the filename. I'm also not exactly sure what type of
object a 'postedFile' is (knowing that would likely help me see the
difference).
-Darrel
get's the filename from it:
imageToCheck = myFormField.postedfile
checkedFileName = Mid(imageToCheck.FileName, InStrRev(imageToCheck.FileName,
"\") + 1)
I now want to grab the filename of an image that is already on the server:
sourceImage = System.Drawing.Image.FromFile("/my/file.jpg")
However, sourceImage.FileName is not valid. I've been googling, but am not
quite sure how to grab the filename. I'm also not exactly sure what type of
object a 'postedFile' is (knowing that would likely help me see the
difference).
-Darrel