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

Re: pics in MySQL



----- Original Message -----
From: Muthu <muthu@xxxxxxxxxxxxxxxxxx>
To: <linux-india-programmers@xxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, July 18, 2000 6:57 PM
Subject: Re: [LIP] pics in MySQL


>
> hai vinu
>  One way of updating the image in  datafield is , Open the image file in
> binary mode and read chunks of bytes (say 1024) and  update the blob
> datafield.i havnt worked in java, but vb has some example (see msdn -vb
> help).There are some methods also available.[Long back i have done it ,
but
> i dont remember now.i am sorry]  i hope the above information will help
you
>

check out the java.sql package.....

i think there is a method executeStatement(String ) which takes in a sql
statement and executes it..... if u know the sql statement to update an
image in the database, u can easily do it from within a java class by using
the above method.

sorry for the vague reply...
- chetu