Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Read external file and import data

Avatar

Level 3

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

1 Accepted Solution

Avatar

Correct answer by
Employee

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

View solution in original post

2 Replies

Avatar

Correct answer by
Employee

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

Avatar

Community Advisor

Hi,

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