Home
TeamSite
MB Web Service call to extract information from rendered asset
Bill Klish
MediaBin 4.5.3
Windows 2003 EE SP1
We are exploring mapping back some assets that were taken out of MediaBin using a retrieval task (creating .jpg files) and manually uploaded into TeamSite. We now want to figure out what source image in MediaBin the files came from for some reporting and auditing.
In examining the jpg file, I see that there is a block of data in the file similar to:
[html]
#MB%:{CEECE6DB-9741-4651-BE99-
1AA49B37A2B9}CWAPDAM01:%MB#
tag,2006-10-03T14:01:55Z,1,crdf:li>
[/html]
I think that the GUID for the image is in the [html][/html] element, unless that is the GUID for the MB task that created the image.
Is there a way I can query mediabin to figure out what the repository location is from this file, without physically attempting to open every jpeg file? To say it another way, can I pass in the rendered file path on teamsite to a mediabin web service call that will inspect the contents of the jpeg and pull out the relevant details?
I think this is possible using the derivative tracking functionality, but in scanning the web services api, it is not apparent to me how I would figure this out.
Can someone point me in the right direction?
Find more posts tagged with
Comments
msnider
That GUID is the tracking id and can be used to query the MediaBin server for information about the original asset and task used to create that file (which is often referred to as a derivative or rendition)
You can use the web service method "GetDerivativeID_UNC" to parse a file for the GUID and then pass that into the web service method "GetDerivativeDetails" to retrieve the tracking information...which will include the repository path and id of the original MediaBin asset.
Hope this helps,
Mark
Bill Klish
Thanks Mark, exactly what I was looking for. We will dummy it up on our local app server and see how we make out.