Start a new topic

Get media from URL

Media is retrieved using for instance MediaReference. But is there some way of retrieving a media from the URL that is used to access it? By URL I mean the value of the URL-property in the Media class, for instance server//imagevault/publishedmedia/something/something.jpg

1 Comment

Yes, you can use the IMediaService.Find method

https://imagevault.se/DeveloperDocumentation/v5.0/reference/html/M_ImageVault_Common_Services_IMediaService_Find.htm 

This method takes an MediaItemFilter as parameter and it's Filter property is a MediaItemFilter instance
https://imagevault.se/DeveloperDocumentation/v5.0/reference/html/T_ImageVault_Common_Data_Query_MediaItemFilter.htm 

that has a Url property. Set this to the Url of the image and it will filter out the item that the url belongs to.

Login or Signup to post a comment