It's all about the answers!

Ask a question

How to get URI of picture resoruce in RDNG 6.0.1 M1


Dinyo Dinev (311234) | asked Sep 11 '15, 4:01 a.m.
edited Sep 11 '15, 4:02 a.m.
Hi, I have I File Resource
Type: FD-DF   Format:  File
#Get Results (PF-D2): - this module [TestStatus_FFF] =   #TestResult_PF:
_TestLevels:
  _TextType: HEADING
Description: This is sample description.   FD-DF_Status:
Link Testspec C0 [PF]:
  Link Testspec C1 [PF]:
Link Testspec C2 [PF]:
  Link Testspec D2 [OEM]:
Link Testspec D2 [PF]:
  ReqIF.ChapterName:
ReqIF.ForeignCreatedBy: Tarator   ReqIF.ForeignCreatedOn: Mar 31, 2015 12:00:00 AM
ReqIF.ForeignCreatedThru:
  ReqIF.ForeignDeleted:
ReqIF.ForeignID: 6   ReqIF.ForeignModifiedBy: Tarator
ReqIF.ForeignModifiedOn: Mar 31, 2015 12:00:00 AM   Status_Comment:
SysElement_Link:
  Team Ownership: Moshe Project
TestDevice:
  TestStatus_PF-D2:

So this resource is A File and contains a picture, but I can't find its URI. When I request it:
<rdf:Description rdf:about="https://10.0.2.79:9443/rm/resources/_qWu6Y0ZsEeWL2aNIq4SA-w">
        <process:projectArea rdf:resource="https://10.0.2.79:9443/rm/process/project-areas/_4du-YEDTEeW98vRabXRPEQ"/>
        <dc:creator rdf:resource="https://10.0.2.79:9443/jts/users/Admin"/>
        <acp:accessControl rdf:resource="https://10.0.2.79:9443/rm/accessControl/_4du-YEDTEeW98vRabXRPEQ"/>
        <j.0:createdOn rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2015-03-31T00:00:00</j.0:createdOn>
        <j.0:absoluteNumber rdf:datatype="http://www.w3.org/2001/XMLSchema#int">6</j.0:absoluteNumber>
        <public_rm_10:wrappedResource rdf:resource="https://10.0.2.79:9443/rm/wrappedResources/_p6wwBkZsEeWL2aNIq4SA-w"/>
        <dc:identifier rdf:datatype="http://www.w3.org/2001/XMLSchema#string">375</dc:identifier>
        <dc:created rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2015-08-19T12:20:21.764Z</dc:created>
        <rdf:type rdf:resource="http://jazz.net/ns/rm#WrapperResource"/>
        <rm_property:_oF0noUZsEeWL2aNIq4SA-w rdf:datatype="http://www.w3.org/2001/XMLSchema#string">- this module [TestStatus_PF-D2] =</rm_property:_oF0noUZsEeWL2aNIq4SA-w>
        <dc:description rdf:parseType="Literal"></dc:description>
        <rdf:type rdf:resource="http://open-services.net/ns/rm#Requirement"/>
        <dc:title rdf:parseType="Literal">OLE_AB_3ac3fb2f689a7cbb_23_210002e024_2800000006__d72206d6-0b9d-48eb-a386-29483f9c07a8_OBJECTTEXT_1.rtf</dc:title>
        <j.0:modifiedOn rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2015-03-31T00:00:00</j.0:modifiedOn>
        <oslc:instanceShape rdf:resource="https://10.0.2.79:9443/rm/types/_opYnsUZsEeWL2aNIq4SA-w"/>
        <j.0:modifiedBy rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Tarator</j.0:modifiedBy>
        <public_rm_10:wrappedResourceRevision rdf:resource="https://10.0.2.79:9443/rm/wrappedResources/_p6wwBkZsEeWL2aNIq4SA-w?revision=_qV_TcUZsEeWL2aNIq4SA-w"/>
        <dc:modified rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2015-08-19T12:20:46.397Z</dc:modified>
        <oslc:serviceProvider rdf:resource="https://10.0.2.79:9443/rm/oslc_rm/_4du-YEDTEeW98vRabXRPEQ/services.xml"/>
        <nav:parent rdf:resource="https://10.0.2.79:9443/rm/folders/_pMfUw0ZsEeWL2aNIq4SA-w"/>
        <public_rm_10:wrappedResourceContentType rdf:datatype="http://www.w3.org/2001/XMLSchema#string">text/rtf</public_rm_10:wrappedResourceContentType>
        <j.0:createdBy rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Tarator</j.0:createdBy>
        <dc:contributor rdf:resource="https://10.0.2.79:9443/jts/users/Admin"/>
    </rdf:Description>
And as you can notice there is :
        <public_rm_10:wrappedResourceRevision rdf:resource="https://10.0.2.79:9443/rm/wrappedResources/_p6wwBkZsEeWL2aNIq4SA-w?revision=_qV_TcUZsEeWL2aNIq4SA-w"/>
and if I open thewrrapedResourceRevision I see binary data, which may be the image.
How to get the file URI? What is this OLE object? Is that wrappedResourceRevision my picture resource?

Accepted answer


permanent link
Donald Nong (14.5k614) | answered Sep 11 '15, 5:26 a.m.
The wrappedResource URL IS the URL for the file.  The response headers Content-Disposition, Content-Type, Content-Length should tell you enough about the file.
Dinyo Dinev selected this answer as the correct answer

Comments
Dinyo Dinev commented Sep 11 '15, 7:11 a.m.

But what happens if there are multiple files are there a lot of wrappedResourc-s properties?


Donald Nong commented Sep 13 '15, 8:19 p.m.

Each wrappedResource points to a single file, regardless the file type.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.