public void saveFile(String name, InputStream inputStream, int taskID) throws IOException, SQLException {

        Connection conn = (Connection) initiateFileDBConn()[0];

        CallableStatement cs = null;
        cs = conn.prepareCall("{CALL SP_SaveFile(?, ?, ?)}");
        cs.setString(1, name);
        cs.setBlob(2, inputStream);
        cs.setInt(3, taskID);

        cs.execute();
    }