Professional Web Applications Themes

Displaying Blobs by a newbie - PHP Development

Hi All, I have some images in a mysql database. I wish to display all these images on a PHP Page. I have created a query to retrieve all the images from the database but all that is displayed is characters. I have the Content-Type as image/jpeg in the header of the page to display the images. Can anyone advise me or point me in the right direction to rectify this. Thanks very much. Phil....

  1. #1

    Default Displaying Blobs by a newbie

    Hi All,

    I have some images in a mysql database. I wish to display all these images
    on a PHP Page.

    I have created a query to retrieve all the images from the database but all
    that is displayed is characters.
    I have the Content-Type as image/jpeg in the header of the page to display
    the images.

    Can anyone advise me or point me in the right direction to rectify this.

    Thanks very much.

    Phil.
    Phil King Guest

  2. #2

    Default Re: [PHP] Displaying Blobs by a newbie

    * Thus wrote Phil King (philphil-king.com):
    > Hi All,
    >
    > I have some images in a mysql database. I wish to display all these images
    > on a PHP Page.
    >
    > I have created a query to retrieve all the images from the database but all
    > that is displayed is characters.
    > I have the Content-Type as image/jpeg in the header of the page to display
    > the images.
    Basically you need two scripts:

    script1:
    generate html that has <img> tags that point to script2.

    script2:
    read one image from the database and send that image with the
    appropriate content-type

    >
    > Can anyone advise me or point me in the right direction to rectify this.
    This has been discussed may times on the list, you can search the
    archives to find out more detailed discussions on this.


    Curt
    --
    "I used to think I was indecisive, but now I'm not so sure."
    Curt Zirzow Guest

Similar Threads

  1. Question Displaying blobs
    By Unregistered in forum Brainstorming Area
    Replies: 0
    Last Post: August 3rd, 06:31 PM
  2. BLOBS with PostGres
    By DustyAK in forum Coldfusion Database Access
    Replies: 0
    Last Post: November 14th, 08:15 PM
  3. [PHP] Displaying Blobs by a newbie
    By Warren Vail in forum PHP Development
    Replies: 1
    Last Post: September 13th, 04:19 PM
  4. OLE DB and BLOBs
    By Robert Embleton in forum Informix
    Replies: 0
    Last Post: September 4th, 07:21 PM
  5. Pls help a newbie! ASP test pages not displaying in IE 6?
    By Lee Falataco in forum Macromedia Dreamweaver
    Replies: 2
    Last Post: July 16th, 10:57 PM

Bookmarks

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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139