Saving image to sql server using vb.net
-
Help needed any Helpful exmaple /refrence to save image to sql server without using dataset i have tried googling and also see links here please give me any working link as most of the links/codes have bugs and are not working i tried this link but it gives error that , already in use http://www.vbdotnetheaven.com/UploadFile/scottlysle/ImageToSqlServer11242006025136AM/ImageToSqlServer.aspx[^]
-
Help needed any Helpful exmaple /refrence to save image to sql server without using dataset i have tried googling and also see links here please give me any working link as most of the links/codes have bugs and are not working i tried this link but it gives error that , already in use http://www.vbdotnetheaven.com/UploadFile/scottlysle/ImageToSqlServer11242006025136AM/ImageToSqlServer.aspx[^]
Hi, I would suggest that you use a stored procedure like below. CREATE procedure pr_Insert_image @ImageName as varchar(20), @Image as image as if not exists (select * from tblimages where ImageName =@ImageName ) begin insert into tblimages(ImageName ,Image)values(@ImageName ,@Image) end To convert an image in .Net you could do this like below Dim objImageB As System.Drawing.Image objImageB = Drawing.Image.FromFile(Server.MapPath("~/images/no-photo-Available.jpg"))
-
Hi, I would suggest that you use a stored procedure like below. CREATE procedure pr_Insert_image @ImageName as varchar(20), @Image as image as if not exists (select * from tblimages where ImageName =@ImageName ) begin insert into tblimages(ImageName ,Image)values(@ImageName ,@Image) end To convert an image in .Net you could do this like below Dim objImageB As System.Drawing.Image objImageB = Drawing.Image.FromFile(Server.MapPath("~/images/no-photo-Available.jpg"))
-
Help needed any Helpful exmaple /refrence to save image to sql server without using dataset i have tried googling and also see links here please give me any working link as most of the links/codes have bugs and are not working i tried this link but it gives error that , already in use http://www.vbdotnetheaven.com/UploadFile/scottlysle/ImageToSqlServer11242006025136AM/ImageToSqlServer.aspx[^]