"Sreesekhar Palaparthy" <sreesekhar_p@stripped> wrote:
> Hi,
> I want to store jpg files to BLOB field of a table. That
> table has other fields which are integer and char types. So i
> tried inserting image using
> LOAD DATA INTO ...... statement . It got stored , but when i
> retrieve it back , i'm not able to see the image file.I hope it
> didn't get stored in proper format. How do i acheieve this ??
You should escape inserted data. Use LOAD_FILE() function instead:
http://www.mysql.com/doc/en/String_functions.html
--
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Egor Egorov
/ /|_/ / // /\ \/ /_/ / /__ Egor.Egorov@stripped
/_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net
<___/ www.mysql.com