public void saveFile(JTextField txtfield, JTable tableAllTasks) throws IOException, SQLException {

        //, String name, InputStream inputStream, int taskID

        FileInputStream fis = null;
        fis = new FileInputStream(txtfield.getText());

        File f = new File(txtfield.getText());

        int selectionID = getSelectedTaskId(tableAllTasks);
        Task t = getSelectedTask(selectionID);

        File file = new File(txtfield.getText());
        String name = file.getName();

        fileDBHandler.saveFile(f.getName(), fis, t.getTaskID());

    }