|
|
|
SSC Journeyman
      
Group: General Forum Members
Last Login: Tuesday, April 30, 2013 3:53 AM
Points: 94,
Visits: 235
|
|
create table Wishing ( ID int identity, ImageName varchar(500), ImagePath varbinary(2000) )
insert into Wishing(Imagename,imagepath) values('sunrising','images/sun.jpeg')
while i am inserting image to to table showing error on use convert and run ur query???
|
|
|
|
|
UDP Broadcaster
      
Group: General Forum Members
Last Login: Yesterday @ 1:53 AM
Points: 1,474,
Visits: 2,342
|
|
The ImagePath column is Varbinary data type, and you're trying to insert the value 'images/sun.jpeg', which is not Varbinary type.
Do you want to insert the actual image or just it's path? The column name & value would indicate the path, the data type the image.
Thanks Gaz
|
|
|
|