+ Reply to Thread
Results 1 to 3 of 3

Thread: Storing and displaying images from MySQL
      
   

  1. #1
    Skipper02 is offline Sergeant
    Join Date
    Jun 2008
    Posts
    25

    Default Storing and displaying images from MySQL

    Can anyone please provide me the correct code snippets for storing and then retrieving and displaying images from mysql database? I have read relevant postings in the different forums as well as searched the internet but none of the solutions seem to work.

  2. #2
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: Storing and displaying images from MySQL

    Theres no small code snippet to do this. You need a script that will read the image file and add its contents to the database, as well as retrieve information about the image and store that as well. And then also have code to retrieve the data, and inject the correct information into a header of a file to print the image instead of the gibberish characters that makes up an image when printed in text. Also more to list the images if you don't plan on manually inserting them into pages.

    Heres a tutorial on it, hope it helps
    http://www.codewalkers.com/c/a/Datab...in-Database/2/

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  3. #3
    k_pink is offline Private
    Join Date
    Jul 2008
    Posts
    2

    Arrow Re: Storing and displaying images from MySQL

    Quote Originally Posted by Watdaflip View Post
    Theres no small code snippet to do this. You need a script that will read the image file and add its contents to the database, as well as retrieve information about the image and store that as well. And then also have code to retrieve the data, and inject the correct information into a header of a file to print the image instead of the gibberish characters that makes up an image when printed in text. Also more to list the images if you don't plan on manually inserting them into pages.

    Heres a tutorial on it, hope it helps
    http://www.codewalkers.com/c/a/Datab...in-Database/2/
    thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49