Hello, I have done a function to convert my entered text into bytes for the data type varbinary in my sql column, but now Iam unsure on how to store it. This is my code:
protected void Button2_Click(object sender, EventArgs e)
{
String Back = "upload.aspx";
if (FileUpload1.PostedFile != null &&
FileUpload1.PostedFile.FileName != "")
{
byte[] imageSize = new byte
[FileUpload1.PostedFile.ContentLength];
HttpPostedFile uploadedImage = FileUpload1.PostedFile;
uploadedImage.InputStream.Read
(imageSize, 0, (int)FileUpload1.PostedFile.ContentLength);
Encoding enc = Encoding.ASCII;
byte[] myByteArray = enc.GetBytes(Editor1.PlainText);
string myString = enc.GetString(myByteArray);
SqlConnection con = new SqlConnection();
con.ConnectionString = ConfigurationM ...
Go to the complete details ...