Skip to main content
Level 2
October 16, 2015
Beantwortet

Read external file and import data

  • October 16, 2015
  • 2 Antworten
  • 842 Ansichten

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

Dieses Thema wurde für Antworten geschlossen.
Beste Antwort von 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 Antworten

Lokesh_Shivalingaiah
Level 10
October 16, 2015

Hi,

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

ogillAdobe EmployeeAntwort
Adobe 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