"Sreesekhar Palaparthy" <sreesekhar_p@stripped> wrote:
> I used mysql_real_escape_string() to insert jpg image file into
> database. Now how do i check whether it got stored in proper
> format?? I tried to retriev that image file using
>
> SELECT * INTO OUTFILE <newfilename> FROM IMGTABLE;
>
> But it says cannot open image file as it contains errors.
>
> How do i retrieve the image file back????
Use SELECT .. INTO DUMPFILE:
http://www.mysql.com/doc/en/SELECT.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
| Thread |
|---|
| • mysqlbug - 3(6) | Christian Kropfberger | 21 Apr |
| • Re: Retreiving image files | Egor Egorov | 24 Jul |