Okey, We got the wayout to deal with it,
We have created Custom Java to replace NUL with whitesapce,
String fileName =(String)getVariableData("FileName");
String fileLocation =(String)getVariableData("FileLocation");
String inputFile = fileLocation + "/" + fileName;
String outputFile = fileLocation + "/" + fileName + ".temp";
FileInputStream fileInStream = new FileInputStream(inputFile);
DataInputStream inputStream = new DataInputStream(fileInStream);
BufferedReader bufferRead = new BufferedReader(new InputStreamReader(inputStream));
String stringLine = "";
FileWriter fileOutStream = new FileWriter(outputFile);
BufferedWriter bufferWrite = new BufferedWriter(fileOutStream);
while ((stringLine = bufferRead.readLine()) != null) {
stringLine = stringLine.replaceAll("\0", " ");
bufferWrite.write(stringLine);
bufferWrite.newLine();
}
bufferWrite.close();
In above code
stringLine = stringLine.replaceAll("\0", " ");
will replace the NUL char with witespace