Code:
protected void btnUpload_Click(object sender, EventArgs e){
string pic = ASCIIEncoding.ASCII.GetString(fileUpload1.FileBytes);
TextBox1.Text = value.ToString();
//The value in the textbox is just like: ????�JFIF��`�`� �??FExif��MM�*� ���Q�
}
Code:
protected void btnsave_Click(object sender, EventArgs e){
pic = Encoding.ASCII.GetBytes(TextBox1.Text.ToString().TrimEnd());
//Here i get pic[40685]
//In save button event i convert that textbox value into byte but i get wrong size(pic[40685])
}
Comment