File buffering with CFCONTENT

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

  1. #1

    Default File buffering with CFCONTENT

    Does anyone know how exactly <cfcontent> works when 'streaming' files back to
    the client?

    I have an application that uses <cfcontent> to deliver files securely from an
    area on the server file system outside the document root.

    e.g.
    <cfif permissions and security checks are ok...>
    <cfheader blah ...>
    <cfcontent type="application/unknown" file="/path/to/large/file"
    deletefile="no">

    Is the file read into RAM as a whole before the download begins, or are
    sequential chunks read from disk, buffered, and passed to the client?

    This is an important issue for me because I need to stream large files
    (200mb+) and I don't want multiple concurrent downloads to kill the server.

    perlyking Guest

  2. Similar Questions and Discussions

    1. Serverside Buffering ???
      Hello Forum Members, We have a problem with LiveStreaming and Lost Packages. In our company we broadcast live streaming events in wmedia and...
    2. Buffering Notification
      'NetStream.Buffer.Empty' is a message sent from a netStream's information status...using this I can if(info.code == "NetStream.Buffer.Empty"){...
    3. cfcontent and PDF file summary information
      How can i add title, author and subject into the PDF file summary information thanks
    4. Using CFHeader and CFContent to control file downloads
      I am programming a CF application for an online university. They need to be able to upload files to the server, and then authorize students...
    5. double buffering ?
      Hi, Is there a way to do something like double buffering in Java. I have a 3D sprite with a lot of models. I preload and initialize the whole 3D...
  3. #2

    Default Re: File buffering with CFCONTENT

    Not absolutely sure about cfcontent but I would guess it is the similar
    mechanism to that of cffile where the data is a java inputstream and is not
    buffered into RAM I guess a good way to find out would be to deliver a very
    large file and look at your memory usage. I suspect it will be good

    Pete Thomas 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