C# Class RockWeb.GetImage

Handles retrieving file (image) data from storage, with all the bells and whistles.
Inheritance: IHttpHandler
Datei anzeigen Open project: CentralAZ/Rockit-CentralAZ

Public Methods

Method Description
ProcessRequest ( HttpContext context ) : void

Enables processing of HTTP Web requests by a custom HttpHandler that implements the T:System.Web.IHttpHandler interface.

Private Methods

Method Description
Cache ( byte fileContent, string physFilePath ) : void

Caches the specified file content.

FetchFromCache ( string physFilePath ) : byte[]

Fetches from cache.

GetFromBinaryFileService ( HttpContext context, int fileId, System.Guid fileGuid ) : BinaryFile

Gets from binary file service.

GetResized ( NameValueCollection queryString, byte fileContent ) : byte[]

Resizes and returns the resized content

ProcessBinaryFileRequest ( HttpContext context ) : void

Processes the binary file request.

ProcessContentFileRequest ( HttpContext context ) : void

Processes the content file request.

SendNotAuthorized ( HttpContext context ) : void

Sends a 403 (forbidden)

SendNotFound ( HttpContext context ) : void

Sends 404 status.

UrlQueryToCachedFileName ( NameValueCollection queryString, string mimeType ) : string

URLs the name of the query to cached file.

Method Details

ProcessRequest() public method

Enables processing of HTTP Web requests by a custom HttpHandler that implements the T:System.Web.IHttpHandler interface.
public ProcessRequest ( HttpContext context ) : void
context System.Web.HttpContext An object that provides references to the intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests.
return void