nice video but this code is not working if user not select any image so please refine it thanks i'm waiting your response
@1BestCsharpblog6 жыл бұрын
well! you need to select an image so the program will know which image you want to display
@pixemsoft16 жыл бұрын
@@1BestCsharpblog Thanks for your replay I'm using this code byte[] a = null; if (ProductpictureBox.Image != null) { MemoryStream ms = new MemoryStream(); ProductpictureBox.Image.Save(ms, ProductpictureBox.Image.RawFormat); a = ms.GetBuffer(); ms.Close(); } cmd.Parameters.AddWithValue("@PImage", a); " i try this code but when there is no image in picture box then error begins but i want when there is no image is selected then it save null value in database table . Error message are following System.Data.SqlClient.SqlException: 'Procedure or function 'USP_Insert_Product_Details' expects parameter '@PImage', which was not supplied.'
@christiandaveromero28314 жыл бұрын
That helps me allot
@chaitrab87167 жыл бұрын
where is the design part?,please start the video from scratch...coz we are still begginners
@1BestCsharpblog7 жыл бұрын
just add some textbox,label,picturebox,button and you can see the connection to mysql database part here:kzbin.info/www/bejne/fGGqnoZsfryAoZY and the browse image into picturebox here: kzbin.info/www/bejne/p6vQnX2Vo9d9a9U