public static void WriteFile(byte[] fileContent, String filePath)
    {
        FileOutputStream out = null;
        try 
        {
            out = new FileOutputStream(folderPath+filePath+".cry");
            out.write(fileContent);
        }
        catch (Exception ex) 
        { 
            Logger.getLogger(FileTools.class.getName()).log(Level.SEVERE, null, ex);
        }        
        finally 
        {
            try {
                out.close();
            } catch (IOException ex) {
                Logger.getLogger(FileTools.class.getName()).log(Level.SEVERE, null, ex);
            }
        }        
    }