Write to a file in /content/dam or to /etc/designs | Community
Skip to main content
Level 4
October 16, 2015
Solved

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

  • October 16, 2015
  • 4 replies
  • 1525 views

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 ?

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 Lokesh_Shivalingaiah

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

4 replies

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
October 16, 2015

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

Level 4
October 16, 2015

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

Lokesh_Shivalingaiah
Level 10
October 16, 2015

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

smacdonald2008
Level 10
October 16, 2015

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