If posted file is image, resizes it to the required dimensions if possible and returns resized data. If it is not image, original data are returned.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.0.0.0 (8.1.5347.20411)
Parameters
- fileBinary
- Type: System Byte
Posted file data
- fileExtension
- Type: System String
Extension of the file
- width
- Type: System Int32
Image required width
- height
- Type: System Int32
Image required height
- maxSideSize
- Type: System Int32
Image required max side size
Return Value
Type: ByteSee Also