[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: pics in MySQL



----- Original Message -----
From: Linux List <linux-prog@xxxxxxxxx>
To: <linux-india-programmers@xxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, July 18, 2000 1:20 PM
Subject: Re: [LIP] pics in MySQL


> Do you have any examples on how to store an image in
> binary form.The GUI i am using is Java(jdbc connection)

Connection con=null;
Class.forName("oracle.jdbc.driver.OracleDriver"); ( if u r using oracle
drivers)

    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); ( if u r using an odbc
bridge )


con=DriverManager.getConnection("jdbc:oracle:thin:dbhost:1528:ORCL","<db
login>","<db login's password>"); ( if u r using oracle drivers )


    con=DriverManager.getConnection("jdbc:odbc:<data source name>","<db
login>","<db login's password>"); ( if u r using an odbc bridge )


> so tell me how to connect and store the image in
> db.
> vinu

hope this helps
- chetu