II6 File Upload in MVC storing as 0x0000…in SQL Database
问题 I'm having a bit of an issue uploading files to a database. I'll post snippets of my code below. The table i'm uploading to has the following structure: [IDEnsayo] int NOT NULL, [Nombre] varchar(256) NULL, [Tipo] varchar(256) NULL, [Longitud] int NULL, [Contenido] image NULL This is the class public class Archivo { public string Nombre { get; set; } public string Tipo { get; set; } public long Longitud { get; set; } public byte[] Contenido { get; set; } } I can upload the file using my