String ss = "56";
String mm = "07";
String HH = "15";
String DD = "20" ;
String MM = "01";
String yy1 = "09";
String yy2 = "20";

String[] dateByteFormat = new String[7];

dateByteFormat[0] = ss;

dateByteFormat[1] = mm;

dateByteFormat[2] = HH;

dateByteFormat[3] = DD;

dateByteFormat[4] = MM;

dateByteFormat[5] = yy1;

dateByteFormat[6] = yy2;

for

(int i = 0; i<dateByteFormat.length;i++)
{

mBuf.put(pos,Byte.parseByte(dateByteFormat[i]));

pos ++;

}

out.write(mBuf.array());


The 7 byte is saving but all are in HEX format. It wan to save these 7 byte exactly same value not in HEX in the file. can u please help me?

need to save in file exactly in selected position as per attachment.

56 07 15 20 01 09 20

Please help me.