Class Imagenes

May 25, 2011 at 8:20 AM

Hi folks, first wanted to congratulate you for this great tool.
I hope you understand me, because I do not speak good English.
My question is how do to save an image in the database.
Below left the class.


public class Imagenes
    public int ImagenesId {get; set;}
    public string Nombre {get; set;}
    public Image Imagen {get; set;}

This does not work.
Have any example to show me.

May 31, 2011 at 11:14 AM

Hi mardemza

Most probable this is because the type Image is not a valid database type.

IMHO it is also not a good approach to save images in a database, just store the file on the disk and save the path to it in a db.

Si prefieres tambien puedes responder en castellano.