G
Guest
Hi,
I have two word files.
listprice.doc,product.doc
I converted each of the documents into bytes
byte[] bytedata - lisprice.doc
byte[] bytedata1-product.doc
I create a new array and copy both the contents in it and upload it to a
file in d:
I am getting only the lisprice.doc document in D:\File.doc,I am not getting
product.doc.
plz help.
code:
System.Type elementType = byteData.GetType().GetElementType();
byte[] newArray = new byte[byteData.Length + byteData1.Length];
byteData.CopyTo(newArray, 0);
byteData1.CopyTo(newArray, byteData.Length);
string new_str_array = System.Convert.ToBase64String(newArray);
System.IO.FileStream oFileStream;
oFileStream = new System.IO.FileStream(@"D:\File.doc",
System.IO.FileMode.Create);
oFileStream.Write(newArray, 0, newArray.Length - 1);
oFileStream.Close();
I have two word files.
listprice.doc,product.doc
I converted each of the documents into bytes
byte[] bytedata - lisprice.doc
byte[] bytedata1-product.doc
I create a new array and copy both the contents in it and upload it to a
file in d:
I am getting only the lisprice.doc document in D:\File.doc,I am not getting
product.doc.
plz help.
code:
System.Type elementType = byteData.GetType().GetElementType();
byte[] newArray = new byte[byteData.Length + byteData1.Length];
byteData.CopyTo(newArray, 0);
byteData1.CopyTo(newArray, byteData.Length);
string new_str_array = System.Convert.ToBase64String(newArray);
System.IO.FileStream oFileStream;
oFileStream = new System.IO.FileStream(@"D:\File.doc",
System.IO.FileMode.Create);
oFileStream.Write(newArray, 0, newArray.Length - 1);
oFileStream.Close();