Search Results for

    Show / Hide Table of Contents

    Original Format

    The original format refers to the media original that was uploaded to ImageVault

    To request a image conversion using the declarative model you create a property of type Media. You can also be specific and use any subclass like Image, Video, WebMedia but if the requested media is not of that type a conversion will take place (if possible).

    public class MyMedia:MediaItem {
    	public Media OriginalItem { get; set; }
    }
    

    When retrieving the conversion you can get the URL of the content and all other properties that exists on the MediaItem.

             var client = ClientFactory.GetSdkClient();
             var list = client.Query<MyMedia>().Take(10).ToList();
    foreach (var myMedia in list) {
    	Console.WriteLine(myMedia.Name + "," + myMedia.OriginalItem.Url);
    }
    
    In This Article
    Back to top (c) Meriworks 2002-2022