how we reterive image from sql database using browse button
-
hi can we get the code for reteriving the image from sql data base using browse button Shomic goyal
-
hi can we get the code for reteriving the image from sql data base using browse button Shomic goyal
hellow i also need same code can anubody help us plzzzzzzzzzzz
-
hi can we get the code for reteriving the image from sql data base using browse button Shomic goyal
:laugh: you both on the same course? and the answer to your questions is of course - no, you cant have the code. Look into the System.Data.SQLClient classes and give it a go yourselves. And might I suggest a better explanation of your problem too
Life goes very fast. Tomorrow, today is already yesterday.
-
:laugh: you both on the same course? and the answer to your questions is of course - no, you cant have the code. Look into the System.Data.SQLClient classes and give it a go yourselves. And might I suggest a better explanation of your problem too
Life goes very fast. Tomorrow, today is already yesterday.
i am sorry i have one code for reteriving the image form data base but at present it not working so can i have the another option for that
-
i am sorry i have one code for reteriving the image form data base but at present it not working so can i have the another option for that
Well as i dont know what your code is how can i possible know what the 'other' option is? I would hate to give you the same option you are already using. Why dont you post you code and detail the error you are getting and we can try to help you from there
Life goes very fast. Tomorrow, today is already yesterday.
-
hi can we get the code for reteriving the image from sql data base using browse button Shomic goyal
Inserting ------------------------------------------------------------ ms = new MemoryStream(); pbEmp.Image.Save(ms,System.Drawing.Imaging.ImageFormat.Jpeg); byte[] data = new byte[ms.Length]; ms.Position = 0; ms.Read(data, 0, Convert.ToInt32(ms.Length)); cmd.Parameters.AddWithValue("@Photo", data); Retrieving ------------------------------------------------------------ byte[] data = (byte[])ds.Tables["tablename"].Rows[0][0]; ms = new MemoryStream(data); picturebox.Image = Image.FromStream(ms);