Read external file and import data | Community
Skip to main content
New Participant
October 16, 2015
Solved

Read external file and import data

  • October 16, 2015
  • 2 replies
  • 820 views

Hi,

Could you please help me to understand options to read text file from one of configured network drive location and import data into CRX ?

Thanks,

Hari

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ogill

Hi,

Here are examples for uploading files: http://www.wemblog.com/2011/10/how-to-read-external-file-in-cq.html

The Filesystem Resource Provider can access your file system and then you can watch this folder and upload files and process them when they copied in.

Or you could write a script that watches your file system folder, then when a new file is copied, it uploads the file to the server via a servlet. 

Regards

2 replies

ogillAccepted solution
Employee
October 16, 2015

Hi,

Here are examples for uploading files: http://www.wemblog.com/2011/10/how-to-read-external-file-in-cq.html

The Filesystem Resource Provider can access your file system and then you can watch this folder and upload files and process them when they copied in.

Or you could write a script that watches your file system folder, then when a new file is copied, it uploads the file to the server via a servlet. 

Regards

Lokesh_Shivalingaiah
New Participant
October 16, 2015

Hi,

You can use the FileReader API in Java to read the file and store to crx using JCR API