How to insert an existing image into a table from another table

172 Views Asked by At

i have a table include an image field, i need to insert that image field to another table like this :

SqlDataAdapter da = new SqlDataAdapter(select id,stdpic from student)
dt.Clear(); da.Fill(dt);
insert into team(teamid,teampic)values('"+dt.Rows[0][0].tostring()+"','"+dt.Rows[0][1].tostring()+"')

how to do it?

1

There are 1 best solutions below

0
On

You are going to have to choose a new format, maybe a varbinary