I want to insert some strings and images which from
richTextBox into SQLServer.
I could insert it into SQLServer,such as follows:
FileStream s=new FileStream
(init.appPath+"tempQuestion.rtf",FileMode.Open,Fil eAccess.R
ead);
byte []question=new byte[s.Length];
s.Read(question,0,(int)s.Length);
s.Close();
FileInfo fi=new FileInfo
(init.appPath+"tempQuestion.rtf");
if(fi.Exists)
fi.Delete();
sql="insert into aa(image) values('"+ question +"')";
But i couldn't get out from SQLServer,beacuse the values
which get from SQLServer is "System.Byte[]",not the values
which i put in.
Could you show me a sample which can insert image field
into SQLServer and get out from SQLServer.Thank you!