Route to BLOB properties
Access BLOB properties on content through URL-based partial routing in CMS 13.
BLOB property routing is a partial routing implementation that extends routing for any content beyond pages. Append the BLOB property name to a content URL to access the BLOB directly.
The URL pattern is CONTENT_URL/BLOB_PROPERTY_NAME.
The following content model defines a Thumbnail BLOB property on ImageData:
/// <summary>
/// Base class for content types which should be handled as images by the system.
/// </summary>
public class ImageData : MediaData
{
/// <summary>
/// Gets or sets the generated thumbnail for this media.
/// </summary>
[ImageDescriptor(Width = 48, Height = 48)]
public override Blob Thumbnail { get; set; }
}For an image with the URL http://site/GlobalMedia/Images/someimage.png, access the Thumbnail BLOB property at http://site/GlobalMedia/Images/someimage.png/thumbnail. The ImageDescriptor attribute generates the thumbnail BLOB when the value is null.
Updated 17 days ago
