Cannot Delete Files from Servlet

Discussion in 'Java' started by Emery Z. Balint Jr., Aug 21, 2003.

  1. Great, I can upload files to the server, but cannot delete them. What could
    be the cause of this? I've written a file using FileOutputStream, closed the
    object and if certain criteria are not met, I would like to delete the file.
    But the method just returns false. If I'm correct, this should easily be
    possible. Many thanks in advance for any help!

    Emery.
    /\^/\^/\
    Sun Certified Java Programmer
    www.websamba.com/javarobotics/
    E-stronomy - Astronomical Resources
    www.websamba.com/e-stronomy/
    Talking with Tonz - Dance/Alternative Music
    www.soundclick.com/talkingwithtonz/
     
    Emery Z. Balint Jr., Aug 21, 2003
    #1
    1. Advertising

  2. Emery Z. Balint Jr.

    Joe Guest

    In article <CuW0b.1434$K44.143@edtnps84>, java-nodashes-robotics@-
    yahoo.ca- says...
    > Great, I can upload files to the server, but cannot delete them. What could
    > be the cause of this? I've written a file using FileOutputStream, closed the
    > object and if certain criteria are not met, I would like to delete the file.
    > But the method just returns false. If I'm correct, this should easily be
    > possible. Many thanks in advance for any help!



    Does the servlet process have sufficient permissions to delete files?




    --

    "The natural progress of things is for liberty to yield and government to
    gain ground"
    -- Thomas Jefferson
     
    Joe, Aug 21, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. news.microsoft.com
    Replies:
    4
    Views:
    4,990
    =?Utf-8?B?Q2hpbm1heQ==?=
    Jan 10, 2005
  2. circuit_breaker
    Replies:
    2
    Views:
    2,012
    Jack Jia
    Apr 4, 2004
  3. HARI OM
    Replies:
    0
    Views:
    9,389
    HARI OM
    May 4, 2005
  4. ary
    Replies:
    0
    Views:
    669
  5. Replies:
    5
    Views:
    2,288
Loading...

Share This Page