how to retrieve binary data from database (using c#.net and
sql server/windows application)

Answer Posted / brajesh

byte[] m_MyImage = (byte[])dr["photo"];
Response.BinaryWrite(m_MyImage);

Is This Answer Correct ?    8 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does c# support multiple class inheritance?

610


Why do we need delegates in c#?

495


Can we call server-side code (c# or vb.net code) from javascript?

522


Why we use dll in c#?

549


What is using in c#?

471






What is the difference between static and private constructor in c#?

458


Is php better than c#?

497


From which base class do all Web Forms inherit from?

523


What is the purpose of c#?

552


Can a method return multiple values in c#?

451


What are the advantages of using c#?

511


in object oriented programming, how would you describe encapsulation?

561


What is difference between an reference type and value type in C#?

566


Is c# used for frontend or backend?

585


Explain About delegates

598