Click or drag to resize
AttachmentBinaryHelper Class
Helper for getting and managing attachment binary data
Inheritance Hierarchy
SystemObject
  CMS.BaseCoreMethods
    CMS.BaseAbstractHelper
      CMS.BaseAbstractHelperAttachmentBinaryHelper
        CMS.DocumentEngineAttachmentBinaryHelper

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 10.0.0
Syntax
C#
public class AttachmentBinaryHelper : AbstractHelper<AttachmentBinaryHelper>

The AttachmentBinaryHelper type exposes the following members.

Constructors
  NameDescription
Public methodAttachmentBinaryHelper
Top
Properties
  NameDescription
Public propertyStatic memberDeletePhysicalFiles
Thumbnail quality.
Public propertyStatic memberThumbnailQuality
Thumbnail quality.
Top
Methods
  NameDescription
Protected methodCanResizeImageInternal
Checks whether the image should be processed (resized) by the Image manager (if the destination size is smaller).
Public methodStatic memberDeleteFile
Delete all files with the same name ([name].*) in specified directory.
Protected methodDeleteFileInternal
Delete all files with the same name ([name].*) in specified directory.
Public methodStatic memberEnsurePhysicalFile
Ensures the file in the file system and returns the path to the file.
Protected methodEnsurePhysicalFileInternal
Ensures the file in the file system and returns the path to the file.
Protected methodEnsureThumbnailFileInternal
Ensures the thumbnail file.
Public methodStatic memberGetAttachmentBinary
Returns the file from disk or (if not available on the disk) from database.
Protected methodGetAttachmentBinaryInternal(DocumentAttachment)
Returns the file from disk or (if not available on the disk) from database.
Protected methodGetAttachmentBinaryInternal(Guid, String)
Returns the file from disk or (if not available on the disk) from database.
Protected methodGetAttachmentBinaryInternal(Guid, Int32, String, Boolean)
Returns attachment binary and optionally store it in file system.
Public methodStatic memberGetFilePhysicalPath
Returns physical path to the file.
Protected methodGetFilePhysicalPathInternal
Returns physical path to the file.
Public methodStatic memberGetFilesFolderPath
Returns files folder physical path according to 'CMSFilesFolder' settings key is set or not.
Protected methodGetFilesFolderPathInternal
Returns files folder physical path according to 'CMSFilesFolder' settings key is set or not.
Protected methodGetFilesFolderRelativePathInternal
Returns files folder relative path according to 'CMSFilesFolder' settings key is set or not.
Protected methodGetImageThumbnailBinaryFileInternal
Returns the image thumbnail from the disk.
Protected methodGetImageThumbnailInternal(DocumentAttachment, Int32, Int32, Int32, Boolean)
Returns image thumbnail (from the disk - if already exists, or create new one and save it to disk - if doesn't exist).
Protected methodGetImageThumbnailInternal(Guid, Byte, String, String, Int32, Int32, Int32, Int32, Int32)
Returns image thumbnail (from the disk - if already exists, or create new one and save it to disk - if doesn't exist).
Protected methodGetThumbnailPhysicalPathInternal
Returns physical path to the thumbnail.
Protected methodResizeImageAttachmentInternal
Resizes image to specified dimensions.
Protected methodSaveFileToDiskInternal
Saves file to the disk.
Public methodSetAsDefaultHelper
Sets this object as the default helper
(Inherited from AbstractHelperHelperType.)
Top
See Also