Expand my Community achievements bar.

SOLVED

Write to a file in /content/dam or to /etc/designs

Avatar

Level 4

Hello All,

I am writing a java code to write an xml file. I am able to get an xml file to my local desktop.

Now I am looking to write it to /content/dam or to /etc/designs

any ideas how to go ahead ?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Then, as @Scott mentioned using AssetManager API is the best way to do.

View solution in original post

4 Replies

Avatar

Level 10

I would personally use the DAM to store the XML asset. You can use the AssetManager API

See this community article to learn how to upload files to the AEM DAM using the AssetManager API.

https://helpx.adobe.com/experience-manager/using/uploading-files-aem1.html 

Avatar

Level 10

You want to store the complete XML file as is like an asset or do you want to create a content parsing XML ?

Avatar

Level 4

I want to store the complete xml file as an asset ?

Avatar

Correct answer by
Level 10

Then, as @Scott mentioned using AssetManager API is the best way to do.