Saving image within CFFILE, not <img src

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Saving image within CFFILE, not <img src

    Is there a way to place the result of a cfchart, or any other image file, into
    an RTF document so that the source picture can be deleted from the server yet
    the document's picture does not change? Currently I use <img src=''> but this
    requires web conectivity and is just a web link. How can I inset the image
    into my dynamic cffile?

    Thanks:
    :confused;

    <cffile file="#savePath#TopDol_#session.user.userid#_#rand Num#.rtf"
    action="write" nameconflict="overwrite" addnewline="yes" output="

    <div id='Print' style='font-family: Verdana, Arial, Helvetica,
    sans-serif;font-size: 12px;text-align: left;'>
    <table cellpadding='0' cellspacing='0'>
    <tr>
    <td align='center' colspan=3><h2 stlye='font-size: 90%; color:
    ##006699;'>#Title#</h2></td>
    </tr>
    <tr>
    <td colspan=3>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
    <td align='center'><image
    src='#request.url#/TopDol_#session.user.userid#_#randNum#.jpg'>
    </td>
    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
    </tr>
    <tr align='center'>
    <td align='center' colspan=3> ($'s in Thousands) </td>
    </tr>
    </table>
    </div> ">

    Albino G Guest

  2. Similar Questions and Discussions

    1. Saving JPG or GIF to Vector Image
      Hi All! Using Photoshop 7.0 or Firewroks MX, how do I save full-color JPG or GIF image to vector? Thanks in advance.
    2. CFFILE and image props
      I have used CFFILE many times with success. I now have a client that wants to upload images but wants to know if there is a way for me to have the...
    3. Saving image programatically ...
      The following code polls a webcam and puts an image on the screen as expected. <cfhttp url="http://www.comune.pesaro.ps.it/CamImageGet.asp">...
    4. saving image from url
      Hi guys, Im trying to save an image locally on the server from a url like http://www.site.com/image.jpg So I did try with the fopen and fwrite...
    5. Saving image cast members to an image
      Hi, Is it possible to save a cast member that is an image to a file (I want to have a bunch of images inside a cast and to give the possibility to...
  3. #2

    Default Re: Saving image within CFFILE, not <img src

    I am using ColdFusion MX 6.1
    Albino G Guest

Posting Permissions

  • You may not post new threads
  • You may 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