diff --git a/Models/Rapp_New.cs b/Models/Rapp_New.cs index edd62f5..d3274d9 100644 --- a/Models/Rapp_New.cs +++ b/Models/Rapp_New.cs @@ -1,6 +1,7 @@ using Microsoft.VisualBasic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; +using System.Text; using System.Xml.Linq; namespace VirtualTask.Models @@ -198,5 +199,18 @@ namespace VirtualTask.Models [Display(Name = "FOTO 10")] public string? rafoto10 { get; set; } + + public byte[]? img2 { get; set; } + + //public byte[]? img2byte + //{ + // get + // { + // if (img2 != null) + // return Encoding.ASCII.GetBytes(img2); + // else return null; + // } + + //} } } diff --git a/Views/Rapp_New/Details.cshtml b/Views/Rapp_New/Details.cshtml index 44015a8..00f5147 100644 --- a/Views/Rapp_New/Details.cshtml +++ b/Views/Rapp_New/Details.cshtml @@ -9,7 +9,7 @@
-
+
@Html.DisplayNameFor(model => model.seriale_rapportino) @Html.DisplayFor(model => model.seriale_rapportino)
@@ -247,10 +247,30 @@ @* *@
+ +
+ @{ + var imgSrc=""; + + if (Model.img2!=null) + { + + //byte[] appo = Model.img2; + var base64 = Convert.ToBase64String(Model.img2); + imgSrc = String.Format("data:image/gif;base64,{0}", base64); + + } + else + { + + } + } +
+
- + diff --git a/appsettings.json b/appsettings.json index 1202c56..e3d09a7 100644 --- a/appsettings.json +++ b/appsettings.json @@ -8,7 +8,8 @@ "ApplicationInsights": { //PRODUZIONE //"rootUrlApi": "https://api.poloinformatico.it:9000/api/Polo/", - //"rootWebLoghi": "C:\\SORGENTI\\_publish\\wwwroot\\VIRTU\\", + //"rootWebLoghi": "C:\\ZAPIPOLO\\api_polo\\wwwroot\\VIRTU\\", + //"rootUrlApi2": "https://api.poloinformatico.it:9000/VIRTU/", //TEST "rootUrlApi": "http://testapi.poloinformatico.it:9001/api/Polo/", diff --git a/wwwroot/assets/images/No_image.png b/wwwroot/assets/images/No_image.png new file mode 100644 index 0000000..ba2d76f Binary files /dev/null and b/wwwroot/assets/images/No_image.png differ