D
Darrel
I'm grabbing a file from a file upload form field. This is a
'system.web.httppostedfile'
I would like to modify the image (Cropping/scaling) using
system.drawing.image.
Is there anyway to go from 'system.web.httppostedfile' directly to
'system.drawing.image'?
Normally, I'd grab the System.Drawing.Image from a file itself:
Dim g As System.Drawing.Image =
System.Drawing.Image.FromFile(pathToFile.jpg)
But I can't figure how how to go directly from a postedfile to an image
type. I keep getting cast errors.
The only solution I've come up with is to grab the posted file, save it,
then regrab it to turn into an image, but that seems like a redundant step.
-Darrel
'system.web.httppostedfile'
I would like to modify the image (Cropping/scaling) using
system.drawing.image.
Is there anyway to go from 'system.web.httppostedfile' directly to
'system.drawing.image'?
Normally, I'd grab the System.Drawing.Image from a file itself:
Dim g As System.Drawing.Image =
System.Drawing.Image.FromFile(pathToFile.jpg)
But I can't figure how how to go directly from a postedfile to an image
type. I keep getting cast errors.
The only solution I've come up with is to grab the posted file, save it,
then regrab it to turn into an image, but that seems like a redundant step.
-Darrel