public bool LoadImage(int productId, int sort, string pFilePath) { // byte[] imageData, Stream fileStream = new FileStream(pFilePath, FileMode.Open); _productImageService.ProcessImageProduct(Convert.ToInt32(productId), StreamOperations.ConvertStreamToByteArray(fileStream), sort); fileStream.Close(); return(true); }