DNG and embedded image in artifact
With DNG 6.0.5 or 6.0.6.1,is there a way to retrieve information (date of creation, date of modification, size ...) concerning the images included in the content of an artefact.
For example, with this REST query :
I can retrieve an artifact content looks like :
<ds:content>
<text:text artifactRole=""
type="Information">
<text:richTextBody>
<div>
<div xmlns="http://www.w3.org/1999/xhtml">
<p dir="ltr"
id="_1606973736227">Test mise à jour image :</p>
<p dir="ltr"
id="_1606973736228">
<img alt="Embedded Image"
class="embeddedImageLink"
id="_1606973736230"
src="https://jazz/rm/wrappedResources/_XPMdYTUpEeuU-O9KHCFAKg?accept=none&private"/>
</p>
<p dir="ltr"
id="_1606973736229"/>
</div>
</div>
</text:richTextBody>
</text:text>
</ds:content>
<text:text artifactRole=""
type="Information">
<text:richTextBody>
<div>
<div xmlns="http://www.w3.org/1999/xhtml">
<p dir="ltr"
id="_1606973736227">Test mise à jour image :</p>
<p dir="ltr"
id="_1606973736228">
<img alt="Embedded Image"
class="embeddedImageLink"
id="_1606973736230"
src="https://jazz/rm/wrappedResources/_XPMdYTUpEeuU-O9KHCFAKg?accept=none&private"/>
</p>
<p dir="ltr"
id="_1606973736229"/>
</div>
</div>
</text:richTextBody>
</text:text>
</ds:content>
After that, I try to retrieve more informations about "https://jazz/rm/wrappedResources/_XPMdYTUpEeuU-O9KHCFAKg", but my request "https://jazz/rm/wrappedResources/_XPMdYTUpEeuU-O9KHCFAKg&oslc_config.context=https://jazz/rm/cm/stream/_XpkqoDCnEeuHlq5APHMxmg" fails with 404 error code.
What's wrong with the "Wrapped Resources" ?
Thank you for your help.
Regards.
2 answers
But I have an other question ...
An image embedded in a artifact it's nothing other than an artifact embedded in an other artifact ...
How can I get informations about this image, such as : creator, creation date, modification date ...
Never tried this before :-)
I'm using 7.0.1.
If the wrapped resource URL shown in the embedded location is e.g. https://jazz.ibm.com:9443/rm/wrappedResources/WR_uOB7JNd7EeqV5_5cfWW9rw?accept=none&private
This returns the bare image, i.e. none of the trimmings of a resource.
AFAICT the resource URL for this WR is https://jazz.ibm.com:9443/rm/resources/WR_uOB7JNd7EeqV5_5cfWW9rw?accept=none&private
i.e. change /wrappedResources/ to /resources/.
Add the configuration context, of course.
This returns RDF including the source artifact ID.
This is undoubtedly private API so this is unsupported, you use at your own risk and it may change without warning, etc.
Regards
Ian
Comments
Ian Barnard
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Dec 03 '20, 10:59 a.m.The parameter in your URL is wrong because that & should be a ? - and the parameter value should really be url-encoded too
Jean-François CHAPELLE
Dec 03 '20, 12:11 p.m.Thank you ...