firedraken
January 18th, 2008, 01:47 AM
I am trying to save a file that has an image pasted in along with the text that is typed. I have been able to get the text to save with no problem but the image pasted in is not saving.
here is the code I am using:
string path1 = cmbCat.Text;
FileStream fs = new FileStream("\\BOS\\Cat\\" + path1 + "\\" + textBox1.Text + ".wri", FileMode.OpenOrCreate, FileAccess.Write, FileShare.ReadWrite);
StreamWriter sw = new StreamWriter(fs, System.Text.Encoding.Default);
sw.Write(txtBox1.Text);
sw.Flush();
sw.Close();
fs.Close();
it saves the text just find but does not save the image. What can i do and how?
here is the code I am using:
string path1 = cmbCat.Text;
FileStream fs = new FileStream("\\BOS\\Cat\\" + path1 + "\\" + textBox1.Text + ".wri", FileMode.OpenOrCreate, FileAccess.Write, FileShare.ReadWrite);
StreamWriter sw = new StreamWriter(fs, System.Text.Encoding.Default);
sw.Write(txtBox1.Text);
sw.Flush();
sw.Close();
fs.Close();
it saves the text just find but does not save the image. What can i do and how?