Home > Net > An error has occurred winform upload photos to the database
An error has occurred winform upload photos to the database
Time:09-22
This is the database Figure 1 is a images have a mistake? Figure 2 is the name and photo are invalid? (FIG. 3)
CodePudding user response:
Error is obvious, the data are not compatible, is where the red box you add parameters and the second assignment, image type and the inside of the database field types, generally best picture don't save to the database, or out and transformation, and your picture database field length is only 20, most of the time the image into a byte occurs not only 20, if can save, come and remove image data is incomplete, suggest you upload pictures to a path on the server, database photo fields to store image upload path + name,