Click here to Skip to main content
15,890,388 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
XML
ID  name    Score   paper-II     image
1   vinod   12  paper-II       null
2   vinod   10  paper-I        null
3   vinod   0   paper-II       null
4   vinod   15  paper-I        <binary data>
5   vinod   12  paper-III      null
6   vinod   15  paper-IIII     <binary data>
7  vinod    16  paper-II       <binary data>
8   vinod   18  paper-II       null
9   vinod   13  paper-I        null

In Image column user did not upload image in first two or more times after that upload an image again user want to change that image so how delete first image and insert new image
Posted
Updated 19-Dec-14 19:34pm
v5
Comments
Schatak 20-Dec-14 0:05am    
why you want to delete record? can't you simply update it?
iamvinod34 20-Dec-14 0:41am    
For registered user we can use update panel . but for new user we can not update we will use insert na?
Praveen Kumar Upadhyay 20-Dec-14 3:43am    
Can you please brief a little more about your question.

1 solution

Hi,
I think there is no need to delete image data.
You can directly update the Image column instead of delete it first and then insert it again.
You can use following query :
SQL
Update table SET image = <binary data=""> where ID = 1</binary>


Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900