I just wondering if any of you know how to get an image from SDM using Web Services or CA PAM, I am working with that images for profile picture in CA SDM, but the administrator need to upload the pics in the repository so it changes the extension to .GZ and my script can't read it...
I want to know if is possible download a image from SDM repository in a specific folder through Web Services/PAM, or Upload the images with the original extension, without ".GZ":
Thanks in advance, I appreciate your help.
partially answering your question, as I know .gz is an archive file type, so you can disable archiving in Repository settings in SDM. (Admin tab -> Attachments -> Repositories -> [Edit] -> Archive Type : None).
This options didn't work, the SDM Repository is already configured like that. anyway this continues attaching with the .GZ extension.
The attachments are simple files on the system.
So you can retrieve the path to that specific attachment and repository using web service method:
and then grab/construct the physical path to the file on the system itself.
Of course if the file is compressed your script will need to decompress it before reading/displaying the content.
Many compressing tools like Gzip.exe can be used command line to do that.
Hi you can use upload servlet to get attachments from SDM. Check the following thread Downloading attachment using CA Upload servlet using following link
You can aslo use REST API to get attachments
Thanks Gutis . I didn't think to use the upload servlet directly and we tried with REST but this was buggy at this time. I think CA have now corrected it with patch. Didn't have give it a try since then.
Thanks so much for all your help Gutis and Jmayer, I did use command line for decompressing, and it works
Virtual Team Work