Results 1 to 4 of 4
  1. #1
    wiki.horizon is offline Member
    Join Date
    Jun 2011
    Posts
    5
    Rep Power
    0

    Angry Problem while reading PDF when path is changed

    Hi,

    I am uploading few images through my app which will be saved in C:/../tomcat/webapps/../Image/
    I am able to fetch the images which are pdfs and jpg.

    Now I have changed the path to D:/....tomcat/webapps/../Image/ . Everything being same except C: to D: Drive. I successfully uploaded the images and saved in my new location. But unable to read the pdf files.

    Kindly let me know what can be the solution. In JSP, all alerts for the path is rite.

    Regards,
    wiki.horizon

  2. #2
    makpandian's Avatar
    makpandian is online now Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    441
    Rep Power
    6

    Default

    I think, the problem is not in your path but in your code that used to upload files.
    If possible, Let us see your sample code.
    Mak
    (Living @ Virtual World)

  3. #3
    wiki.horizon is offline Member
    Join Date
    Jun 2011
    Posts
    5
    Rep Power
    0

    Smile Issue Fixed :)

    Actually while reading pdf ,it was referring to the local folder of the project. But then I have installed the Tomcat in D: Drive . Its working fine :)..

    Thank you

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. Reading and writing the file in a specified path
    By harsha.udupa2008 in forum New To Java
    Replies: 4
    Last Post: 04-23-2010, 11:48 AM
  2. Replies: 5
    Last Post: 08-21-2009, 11:03 AM
  3. reading file from a path
    By new_coder in forum New To Java
    Replies: 5
    Last Post: 08-17-2009, 04:52 AM
  4. Weird path problem when reading properties file
    By jerry_popperq in forum New To Java
    Replies: 0
    Last Post: 03-18-2009, 03:32 PM
  5. problem with PATH
    By creativehacker in forum New To Java
    Replies: 4
    Last Post: 07-11-2007, 02:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •