Error On while executing to insert image on it???

  • 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???

  • 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

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply