Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7702133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:09:26+00:00 2026-05-31T23:09:26+00:00

I am working on an application that processes a large number of files placed

  • 0

I am working on an application that processes a large number of files placed in a directory. I want to insert the fully qualified path of each file that is processed by my application into the database. If a file that is already processed by the application is re-submitted for re-processing by the user, then I want to delete all the data processed for the file from the database by specifying the fully qualified path of the file and then proceed with the file as if it were a new file.

The problem that I am facing is that when I run the application through eclipse, the path name inserted into the database is as follows:-

   D:\Trunk\App\Source

Afer I concatenate the file name with its path (pathString + File.seperator + fileNameString) i.e, the fully qualified path inserted into the database is as follows

   D:\Trunk\App\Source/file1.txt

But if I create a jar for my application and run the jar by double clicking on the jar, the path name inserted into the database is as follows:-

   D:/Trunk/App/Source

After I concatenate the file name with its path (pathString + File.seperator + fileNameString) i.e, the fully qualified path inserted into the database is as follows

  D:/Trunk/App/Source/file1.txt  

The application fails to delete the data for a file that is resubmitted for processing if the application is run by double clicking on the jar instead of running the application from eclipse. The query used for deleting is the same regardless of running the application from eclipse or by double clicking the jar

    delete from file_table where where file = 'D:\Trunk\App\Source/file1.txt'
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T23:09:27+00:00Added an answer on May 31, 2026 at 11:09 pm

    Convert path to URI and store in database. Then recreate file from URI.

    String uriName = new File(path).toURI().toString()

    String path = new File(new URI(uriName)).getAbsolutePath();

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a very large application that has multiple processes running simultaneously;
I have an MVVM application that processes a large number of images in the
I have developed a PHP application that processes relatively large text files, and stores
I am working with an application that is used by multiple clients. Each client
We run a nightly process that generates a large number (~8000) of reports each
I am working on application which processes large amount of text data gathering statistics
I've been working on a system that uses asymmetric encryption in a large number
I'm working on a regression-testing tool that will validate a very large number of
I'm working on an application that uses multiple threads to process its data. The
I am working on splitting out an existing, working application that I currently have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.