From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,27c24ba68e621eef X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!proxad.net!freenix!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Sender: obry@PASCAL Newsgroups: comp.lang.ada Subject: Re: AWS applications and domain hosting References: From: Pascal Obry Date: 01 Jul 2005 08:01:25 +0200 Message-ID: Organization: Home - http://www.obry.net User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Date: 01 Jul 2005 08:01:36 CEST NNTP-Posting-Host: 82.120.157.150 X-Trace: 1120197696 news.wanadoo.fr 25062 82.120.157.150:3439 X-Complaints-To: abuse@wanadoo.fr Xref: g2news1.google.com comp.lang.ada:11804 Date: 2005-07-01T08:01:36+02:00 List-Id: Jacob Sparre Andersen writes: > I wasn't aware of the AWS.Response.File function. Does this it stream > the file? No this routine does not stream the file but it does not read all the file in memory. It reads bit of it at a time and send it over. See the AWS.Net.Buffered. > Or do you have to load it into memory first? If AWS knows > how to stream files, my point about handing out files is clearly not > valid. It knows too. See AWS.Resources.Streams.Disk, AWS.Resources.Streams.Disk_Once, AWS.Resources.Streams.Memory, AWS.Resources.Streams.Memory, AWS.Resources.Streams.Memory.Zlib. Is that enough ? A Streams.Memory read/create byte directly from memory. Disk is obvious, Disk_Once read the file and then delete it (useful when sending over a file created from the user for example, you really want to delete it when sent). It is also possible to create your own stream method by deriving from AWS.Resources.Streams... And there is much much more ! Be sure to read the manual :) > How about handling of content negotiation? Can AWS also do that for > me? (yes, I _could_ read the manual) Or will I get the pleasure of > implementing that myself? Don't know what you are calling "content negotiation" ? Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595