E
Emery Z. Balint Jr.
Hello all,
Is there any way of writing an image file (JPEG and/or PNG) to memory
instead of to the hard drive? Here's what I'm trying to do. Users can upload
an image to a Web site. I grab their image (form multipart/data) and if it's
ok, I write it to the drive, if it's not, I delete the file.
The problem is that I must write it to the hard drive, and if criteria is
not met, deletion isn't always possible. So writing that JPEG or PNG file to
memory would be much more convenient as I could probably just null the
variable. Is this possible? Thanks for any push in the right direction!
M.
*****
Sun Certified Programmer
http://www.websamba.com/javarobotics/
E-stronomy - Astronomical Resources
http://www.websamba.com/e-stronomy/
Is there any way of writing an image file (JPEG and/or PNG) to memory
instead of to the hard drive? Here's what I'm trying to do. Users can upload
an image to a Web site. I grab their image (form multipart/data) and if it's
ok, I write it to the drive, if it's not, I delete the file.
The problem is that I must write it to the hard drive, and if criteria is
not met, deletion isn't always possible. So writing that JPEG or PNG file to
memory would be much more convenient as I could probably just null the
variable. Is this possible? Thanks for any push in the right direction!
M.
*****
Sun Certified Programmer
http://www.websamba.com/javarobotics/
E-stronomy - Astronomical Resources
http://www.websamba.com/e-stronomy/