Professional Web Applications Themes

How do I display and Image - Coldfusion Database Access

I am currently developing an application for one of my clients, but I am having problem with displaying images after they have been stored in a directory. I created, an upload directory on the server, the problem I am having now is displaying the image I just uploaded. I am also writing the image name to the Database.. Is this the correct? Do I need to write the image name to the Database? Please Help... I am going nutz here. Project is due 10 days away....

  1. #1

    Default How do I display and Image

    I am currently developing an application for one of my clients, but I am having
    problem with displaying images after they have been stored in a directory.
    I created, an upload directory on the server, the problem I am having now is
    displaying the image I just uploaded.
    I am also writing the image name to the Database.. Is this the correct? Do I
    need to write the image name to the Database?
    Please Help... I am going nutz here.
    Project is due 10 days away.

    emonroy38 Guest

  2. #2

    Default Re: How do I display and Image

    Post some code. If you are storing the image name in the database, say
    image.jpg in db column image_name, when you use the value in your CF pages, you
    need to do like so:

    <img src="images/<cfoutput>#Trim(image_name)#</cfoutput>">



    drforbin1970 Guest

Similar Threads

  1. Random image display
    By the flash master in forum Macromedia Dynamic HTML
    Replies: 1
    Last Post: November 30th, 12:44 AM
  2. Image display problems
    By rudodoo619 in forum Coldfusion Database Access
    Replies: 8
    Last Post: March 8th, 06:58 PM
  3. Display Image from Database
    By AnnieK in forum Macromedia Flex General Discussion
    Replies: 4
    Last Post: August 31st, 01:42 PM
  4. image display
    By dosima in forum Dreamweaver AppDev
    Replies: 1
    Last Post: April 9th, 05:10 PM
  5. image display problem
    By M.B. webforumsuser@macromedia.com in forum Macromedia Flash Sitedesign
    Replies: 2
    Last Post: October 21st, 09:01 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