Gaurav Kishore wrote:
>
> Hi!,
> In Jason Hunters book the code for "Drawing over an image to make it
> confidential" (on pages 167-168) allows to draw an image over an
> pre-existing image, using AcmeEncoder. I am trying to run this code,
> thru Java Web Server. The clas file is in 'servlet' directory, but
> where should I keep the image file whose name as to be passed with
> the url??
>
> If I keep the image file in servlet directory itself then I get the
> error :

The image goes in the doc root (public_html).  If you look at the code
you'll see it uses getPathTranslated() to locate the file.  That looks
for files under the doc root.

-jh-

--
Jason Hunter
[EMAIL PROTECTED]
Book:    http://www.servlets.com/book
Article: http://www.javaworld.com/jw-12-1998/jw-12-servletapi.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to