protected override void WriteFile(HttpResponseBase response)
        {
            string resizedFilePath = GetResizedImagePath(_filePath, _width, _height);

            response.SetDefaultImageHeaders(resizedFilePath);
            WriteFileToResponse(resizedFilePath, response);
        }
Пример #2
0
 /// <summary>
 /// Writes the file to the response.
 /// </summary>
 /// <param name="response">The response.</param>
 protected override void WriteFile(HttpResponseBase response)
 {
     lock (syncLock)
     {
         var resizedFilePath = ServerFileHelper.ServerFileHelper.GetResizedImagePath(this.filePath, this.width, this.height);
         response.SetDefaultImageHeaders(resizedFilePath);
         this.WriteFileToResponse(resizedFilePath, response);
     }
 }
Пример #3
0
 protected override void WriteFile(HttpResponseBase response)
 {
     response.SetDefaultImageHeaders();
     base.WriteFile(response);
 }