Problem Using AEM code to run the Curl command by accessing DAM assets
Hi Team,
I am having trouble running this curl command using AEM code, and I need to read binary from DAM and send it to Curl. Any help would be greatly appreciated.
or any other ideas how to achieve this.
String Path = "from Dam";
ProcessBuilder processBuilder = new ProcessBuilder(
"curl",
"-X",
"POST",
"--header",
"Authorization:Bearer xxxxx",
"--data-binary",
"@mar.txt",
"http://xxx.tt.omtrdc.net/m2/xxxx/v2/profile/batchUpdate"
);
Process process = processBuilder.start();
Thank You
Uma
