Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
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

Level 10

Hi,

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