fileparsing - Process huge text file in java web application via UI upload or read from directory -


my web application needs process text file (size close 200mb) reading relevant data. text file needs processed monthly once, means contents of text file varies monthly. know best practice implement processing of text file.

  1. shall allow user upload 200mb file via application , process it?

  2. configure java webapplication read file predefined directory in tomcat server.(still present ui user initiate processing, e.g.'start processing')

i using jsapar library processing text file flat file fixed positions.

let me answer question myself.

a pointed out vikeng21 prefer 2nd option. implemented in such way that, have made folder in files placed configurable via property file. added options in gui displays files available system process, reading pre-configured folder property file. if there no files available in folder, gui displays absolute folder path customer needs place files, app can read , render file info. process link rendered against each file name, upon clicking on control transfers action class, reads file using java io framework , process same using jsapar library.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -