C# Class Nop.Services.Media.Extensions

Extensions
显示文件 Open project: JohnsonJohnsonYuan/firebox_nopcommerce-3.9

Public Methods

Method Description
GetDownloadBits ( HttpPostedFileBase postedFile ) : byte[]

Gets the download binary array

GetPictureBits ( HttpPostedFileBase postedFile ) : byte[]

Gets the picture binary array

GetProductPicture ( Product product, string attributesXml, IPictureService pictureService, IProductAttributeParser productAttributeParser ) : Picture

Get product picture (for shopping cart and order details pages)

Method Details

GetDownloadBits() public static method

Gets the download binary array
public static GetDownloadBits ( HttpPostedFileBase postedFile ) : byte[]
postedFile HttpPostedFileBase Posted file
return byte[]

GetPictureBits() public static method

Gets the picture binary array
public static GetPictureBits ( HttpPostedFileBase postedFile ) : byte[]
postedFile HttpPostedFileBase Posted file
return byte[]

GetProductPicture() public static method

Get product picture (for shopping cart and order details pages)
public static GetProductPicture ( Product product, string attributesXml, IPictureService pictureService, IProductAttributeParser productAttributeParser ) : Picture
product Product Product
attributesXml string Atributes (in XML format)
pictureService IPictureService Picture service
productAttributeParser IProductAttributeParser Product attribute service
return Picture