New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Represents an object which can handle image data's storage and retrieval using HTTPCache

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class RadImageSessionPersister : IRadImagePersister

Inheritance: objectRadImageSessionPersister

Implements: IRadImagePersister

Inherited Members object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public RadImageSessionPersister()

Properties

Gets current HttpContext instance

C#
protected HttpContext CurrentContext { get; }

Gets or sets the name of the image file.

C#
public virtual string ImageFileName { get; set; }
Property Value:

The name of the image file.

Gets portion of generated Uri which represents image's identification key value

C#
protected virtual string ImageKey { get; }

Gets portion of generated Uri which represents image's identification key name

C#
protected virtual string UrlKey { get; }

Methods

Generates an Uri at which the image's data can be accessed

C#
public virtual string GenerateBinaryImageUrl(string imageHandlerUrl)
Parameters:imageHandlerUrlstring

URL of the HTTPHandler from which image data should be served

Returns:

string

Generated Uri

Implements: IRadImagePersister.GenerateBinaryImageUrl(string)

Retrieves image binary data from storage

C#
public virtual BinaryImageDataContainer LoadImage()
Returns:

BinaryImageDataContainer

image's data

Implements: IRadImagePersister.LoadImage()

Saves a image's data to storage

C#
public virtual void SaveImage(byte[] image)
Parameters:imagebyte[]

Image's binary data

Implements: IRadImagePersister.SaveImage(byte[])