C# Class Nop.Services.Media.Extensions

Extensions
Afficher le fichier Open project: JohnsonJohnsonYuan/firebox_nopcommerce-3.9

Méthodes publiques

Méthode 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 méthode

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

GetPictureBits() public static méthode

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

GetProductPicture() public static méthode

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
Résultat Picture