D
Darrel
When I accept an image that has been uploaded through a form, I can grab the
image type as such:
imageToCheck = uploadedFileField.PostedFile
imageToCheck.ContentType
If (contentType = "image/pjpeg") _
Or (contentType = "image/jpeg") _
etc...
I'm now trying to figure out how to get the contentType from an image
fromfile:
System.Drawing.Image.FromFile("path/file.jpg")
Can that be done? I don't see a 'contentType' property for that type of
object.
-Darrel
image type as such:
imageToCheck = uploadedFileField.PostedFile
imageToCheck.ContentType
If (contentType = "image/pjpeg") _
Or (contentType = "image/jpeg") _
etc...
I'm now trying to figure out how to get the contentType from an image
fromfile:
System.Drawing.Image.FromFile("path/file.jpg")
Can that be done? I don't see a 'contentType' property for that type of
object.
-Darrel