Posts by Daniel Sousa • 49 points
7 posts
-
0
votes1
answer90
viewsA: Picturebox and datagridview
I tested and it worked, the problem is that the database gets too slow. There is another way to save without being image?
c#answered Daniel Sousa 49 -
1
votes3
answers767
viewsA: Upload image to picturebox and write to database
Code I used and worked: FileStream Stream = new FileStream(imgLocation, FileMode.Open, FileAccess.Read); BinaryReader binary = new BinaryReader(Stream); img = binary.ReadBytes((int)Stream.Length);…
c#answered Daniel Sousa 49 -
0
votes1
answer90
viewsQ: Picturebox and datagridview
Guys I’m in need of help, already managed to upload images to comics, now I have the following problem: I placed this code to select a datagridview line and fill in the respective fields.…
c#asked Daniel Sousa 49 -
0
votes3
answers767
viewsA: Upload image to picturebox and write to database
if (Pic.Image != null) { using (MemoryStream stream = new MemoryStream()) { Pic.Image.Save(stream, ImageFormat.Jpeg); byte[] Bfoto = stream.ToArray(); Classes.Cadastro.Crm.Analise_CRM Cad_Foto = new…
c#answered Daniel Sousa 49 -
2
votes3
answers767
viewsQ: Upload image to picturebox and write to database
I am now in the movies part of the video club, where I have these fields. And I wanted to upload the image to the Pictura box (it is already working) and when I made new it was saved in the database…
c#asked Daniel Sousa 49 -
0
votes2
answers1676
viewsA: Login in C# with database
Solved the login SqlConnection sqlCon = null; //Conexão começa em Null private string strCmd = @"Data…
-
1
votes2
answers1676
viewsQ: Login in C# with database
I’m trying to make a login panel, but it doesn’t recognize the data recorded in the database. Code: SqlConnection con = new SqlConnection(@"Data…