Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Generate thumbnails into application context WebContent - Error the system could not found the path
Joined: Nov 23, 2009
Dec 01, 2010 07:20:39
I have tried to search on this web forum but this failed...
I try over and over again to generate thumbnails into WebContent the context of the application by using
, look at below please:
//attribute ServletContext appContext = ServletActionContext.getServletContext(); //method saveImage(img, .9f, "../WebContent/galeriaDeFotoThumbs/thumb_" + UploadImagemAction.idDaImagemPopulado + ".jpg");
This shows on console the following message:
..\WebContent\galeriaDeFotoThumbs\thumb_121.jpg (The system could not found the path)
rocket mass heater
subject: Generate thumbnails into application context WebContent - Error the system could not found the path
how to use application.getRealPath()
Run an application anywhere on my system
Image Display problem
How to find JPG file path?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013