Hello. Tell me how to upload a picture to the MySQL database. I added a column like MediumBLOB to the existing table in the database. They say this is a type for storing pictures. So how to upload a picture there ??? You can see the ASP ASP topic. Query a SQL C # entry in the List to make it clearer how I try to do it. not much has changed the Book model
public class Book { // ID ΠΊΠ½ΠΈΠ³ΠΈ public int Id { get; set; } // Π½Π°Π·Π²Π°Π½ΠΈΠ΅ ΠΊΠ½ΠΈΠ³ΠΈ public string Name { get; set; } // Π°Π²ΡΠΎΡ ΠΊΠ½ΠΈΠ³ΠΈ public string Author { get; set; } //ΠΊΠ°ΡΡΠΈΠ½ΠΊΠ° ΠΊΠ½ΠΈΠ³ΠΈ public byte[] Image { get; set; } // ΡΠ΅Π½Π° public int Price { get; set; } } adding
public byte[] Image { get; set; } The variant with the storage of the address of the picture will not work as I want to add a picture through the form. Tell me how it is correct