byte[] theFile = FileUtils.readFileToByteArray(new File(filename));
ByteArrayInputStream bais = new ByteArrayInputStream(theFile);
DataInputStream din = new DataInputStream(bais);
UtilsFlexMessage utilsFlex = new UtilsFlexMessage();
utilsFlex.parseInputStream(din);
String content=utilsFlex.updateFlexMessage("2288iduzo6", "65cbmmj34v");
utilsFlex.serializeMessage(filename,content);
}
}