How to use aem-upload in Java? | Community
Skip to main content
New Participant
January 21, 2025
Solved

How to use aem-upload in Java?

  • January 21, 2025
  • 2 replies
  • 624 views

Before we were using Asset Java APIs to create assets in Java, but it looks like that is deprecated.

 

I saw from another post that we'll need to use aem-upload: https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/assets/admin/developer-reference-material-apis#asset-upload

 

I'm confused on how we're supposed to use aem-upload in Java, it doesn't seem to be a Java API. Is it even possible? Appreciate if anyone can include an example I can reference. 

 

 

Best answer by SreenivasBr

You will have to invoke the upload using httpclient APIs in Java.

Also, for authentication, you can use token based authentication - https://experienceleague.adobe.com/en/docs/experience-manager-learn/getting-started-with-aem-headless/authentication/overview

 

2 replies

kautuk_sahni
Employee
February 10, 2025

@ishaja Did you find the suggestion helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!

Kautuk Sahni
SreenivasBr
SreenivasBrAccepted solution
New Participant
January 22, 2025

You will have to invoke the upload using httpclient APIs in Java.

Also, for authentication, you can use token based authentication - https://experienceleague.adobe.com/en/docs/experience-manager-learn/getting-started-with-aem-headless/authentication/overview