Ibrahim, Wednesday, April 03, 2002, 11:30:28 AM, you wrote: IKC> I want to knowledge about blob.
IKC> how can write or read image(jpeg,gif or tiff) to/from MYSQL database by IKC> using Visual C++. MySQL++ seems too confused. :) In the manual you can find examples of loading/reading binary data using MySQL++: http://www.mysql.com/documentation/mysql++/4_Tutorial.html#SECTION03161000000000000000 IKC> Can any body say me more basic and understandable way to do this.. You can use LOAD_FILE() function to put images into a database, for example: INSERT INTO table_name(blob_field) VALUES (LOAD_FILE('/full/path/to/your/file')); Read about LOAD_FILE() at: http://www.mysql.com/doc/S/t/String_functions.html If you don't use LOAD_FILE() - don't forget to escape chars. You can find the list of chars to escape and escape sequences at: http://www.mysql.com/doc/S/t/String_syntax.html To read binary data use the SELECT statement. IKC> Thanks... IKC> Ibrahim Kivanc Cihan IKC> Anadolu University - Turkey -- For technical support contracts, goto https://order.mysql.com/ This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Victoria Reznichenko / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php