hi friends,
i am trying to add one image with another image.
converted bith image into byte array and combined both as one
and open that one.
but only one image i am getting.
this is the code i tried,
FileStream fs = new FileStream(@"G:\prabu\sent.jpg", FileMode.Open, FileAccess.Read);
FileStream fs1 = new FileStream(@"G:\prabu\outbox.jpg", FileMode.Open, FileAccess.Read);
int l1 = (int)fs.Length;
int l2 = (int)fs1.Length;
int l = l1 + l2;
byte[] c1 = new byte[l];
byte[] c2 = new byte[l2];
byte[] c = new byte[l];
fs.Read (c1,0,l1);
fs1.Read (c2,0,l2);
c1.CopyTo(c, 0);
c2.CopyTo (c,l1);
Page.Response.AddHeader("Content-Disposition", "attachment;filename=test.doc" );
Page.Response.OutputStream.Write(c, 0, l);
when i tried to join two word file or text file... getting correctly
and also i want to join one word file and one jpg file
plz help me
prabu