File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
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)
subject: Generate thumbnails into application context WebContent - Error the system could not found the path
how to use application.getRealPath()
Image Display problem
Run an application anywhere on my system
How to find JPG file path?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014