hi
string filepath = @"C:\temp\abc.bmp";
Byte[] imageData = System.IO.File.ReadAllBytes(filepath);
System.Text.UTF8Encoding encoding = new System.Text.UTF8Encoding();
string name = "abc";
string id = "IBPL123";
byte[] bytes1 = new byte[name.Length * sizeof(char)];
bytes1 = encoding.GetBytes(name);
byte[] bytes2 = new byte[id.Length * sizeof(char)];
bytes2 = encoding.GetBytes(id);
Byte[] bytes3 = new Byte[imageData.Length +50];
System.Buffer.BlockCopy(bytes1, 0, bytes3, 0, bytes1.Length);
System.Buffer.BlockCopy(bytes2, 0, bytes3, 25, bytes2.Length);
System.Buffer.BlockCopy(imageData, 0, bytes3, 50, imageData.Length);