public static String getChemin(String nom) {
		String str = null;
		Connection connexion;
		java.sql.Statement requete;
		ResultSet resultat = null;
		try {
			Class.forName("org.sqlite.JDBC");
			connexion = DriverManager.getConnection("jdbc:sqlite:dbged");
			requete = connexion.createStatement();
			resultat = requete
					.executeQuery("select chemin from images where nom='" + nom
							+ "'");

			if (resultat.next())
				str = resultat.getString("chemin");
			requete.close();
			connexion.close();

		} catch (Exception e) {
			e.printStackTrace();
		}
		return str;

	}