D
developers
Hello Every One ,
I need Help in inserting the user image in my data base. but
unfortunatly I don't know how.I'm using asp with sql server. I tried to
insert the image and i geuss it worked.for the field in the db in not
null and it have this value <Binary> . but when i try to select it in
gives me this error "An unhandled data type was encountered".
this is my code :
To insert the image
sql="insert into users_img (user_image,user_id) values
('"&image&"','"&userid&"')"
set rs=conn.Execute (sql)
to Select the image :
sql="select * from users_img where user_id='"&userid&"'"
set rs=conn.Execute (sql)
Response.ContentType = "image/jpg"
Response.BinaryWrite rs("adv_image")
Realy Need Your help
thanx alot
Yours, Maii Ali
I need Help in inserting the user image in my data base. but
unfortunatly I don't know how.I'm using asp with sql server. I tried to
insert the image and i geuss it worked.for the field in the db in not
null and it have this value <Binary> . but when i try to select it in
gives me this error "An unhandled data type was encountered".
this is my code :
To insert the image
sql="insert into users_img (user_image,user_id) values
('"&image&"','"&userid&"')"
set rs=conn.Execute (sql)
to Select the image :
sql="select * from users_img where user_id='"&userid&"'"
set rs=conn.Execute (sql)
Response.ContentType = "image/jpg"
Response.BinaryWrite rs("adv_image")
Realy Need Your help
thanx alot
Yours, Maii Ali