Hi all,<br><br>I&#39;ve started some detective work and I&#39;ve found this:<br><br>urlForDocument: anObject mimeType: mimeType fileName: fileName<br>    ^ (self registry urlForRequestHandler:<br>        (WADocumentHandler<br>
            document: anObject<br>            mimeType: mimeType<br>            fileName: fileName)) displayString<br><br>That seems to suggest that it is possible to download an Object when clicking on a link.<br><br>Then I found this about document:<br>
<br>Instance Variables:<br>    document    &lt;ByteArray | GIFImage | Image | String | WACachedDocument | any class that understands #asMIMEDocumentType:&gt;    contents of the document<br>    fileName    &lt;String&gt;    file containing the document to be sent as an attachment, nil if no such file<br>
    mimeDocument    &lt;MIMEDocument&gt;    MIMEDocument object representing this document and mimeType, generates stream used to write document for the response. <br>    mimeType    &lt;String&gt;    standard HTTP mime type<br>
<br>This seems to suggest that a MIMEDocument should be used. That has a subclass of MIMELocalFileDocument which can have a fileStream. Which I think it what I&#39;m looking for if I want to serve a file directly.<br><br>
So is this the way I should do it?<br>1. create a file stream (to be honest, I don&#39;t know how to yet, but this seems fairly standard)<br>2. put it in aMIMELocalFileDocument contentStream: theFileStream<br>3.use that in the anchor<br>
   document: aMIMELocalFileDocument<br>   mimeType: aMIMELocalFileDocument asMIMEDocumentType<br>   fileName: &#39;some filename here&#39;<br>   with: &#39;some filename here&#39;<br><br>I would really like some feedback on this one, thanks!<br>
<br><br><div class="gmail_quote">2010/3/23 Van Upboy <span dir="ltr">&lt;<a href="mailto:van.upboy@gmail.com">van.upboy@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello,<br><br>I&#39;m using fileUpload (seaside 2.8), which uses a WAFile to store the contents directly. However, this doesn&#39;t work for (very) large files, because pharo will run out of memory. Likewise, an anchor like this:<br>

    html anchor<br>        document: aWAFile contents<br>        mimeType: aWAFile contentType<br>        fileName: aWAFile fileName;<br>        with: aWAFile fileName.<br>won&#39;t work, because I can&#39;t serve the content directly from memory.<br>

<br>I&#39;m new to SmallTalk &amp; Seaside, and I&#39;m wondering how I should approach this problem?<br><br>With kind regards,<br><font color="#888888">Van.<br><div style="display: inline;"></div>
</font></blockquote></div><br><div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup"></div><style type="text/css">#avg_ls_inline_popup {  position:absolute;  z-index:9999;  padding: 0px 0px;  margin-left: 0px;  margin-top: 0px;  width: 240px;  overflow: hidden;  word-wrap: break-word;  color: black;  font-size: 10px;  text-align: left;  line-height: 13px;}</style>