Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. pointtozero

    Displaying image from DB

    Never mind, I've found a way how to do that. TMemoryStream *str = new TMemoryStream; str->WriteBuffer(row[0], mysql_fetch_lengths(res)[0]); str->Position = 0; TJPEGImage *img = new TJPEGImage; img->LoadFromStream(str); Image1->Picture->Assign(img); img->Free(); str->Free();
  2. pointtozero

    Displaying image from DB

    Hiya, I have a valid mysql connection to a MySQL database. What I want is to display a picture from the DB in TImage control. The pictures are stored as BLOB and LONGBLOB data types. This is how I get the image: mysql_query(conn, "SELECT picture FROM customers WHERE name='John Smith'"); res...

Part and Inventory Search

Back
Top