how to view resume which is stored in sql server 2008r2
I want code for viewing resume in textbox by selecting resume which are stored in database
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Manoj BhoirPosted Apr 16, 2015, 5:53 AM
If it is plain text then you can directly retrieve data from database and display it in normal multiline textbox.
and if it is stored in byte array format i.e. (Word or PDF Document) then you can use something like this :
Response.ContentType = "application/octet-stream";
Response.AddHeader("content-disposition", "inline; filename=" +fileName);
Response.BinaryWrite(Buffer);
Response.Flush();
Response.End();
Khargesh RajputPosted Apr 16, 2015, 12:15 AM
and bind resume text to textbox(Multiline="True")
Txtbox.Text=Ds.Tables[0].Rows[0]["resume"].ToString();