Thanks again, Boris. <br><br><div><span class="gmail_quote">On 8/11/07, <b class="gmail_sendername">Boris Popov</b> &lt;<a href="mailto:boris@deepcovelabs.com">boris@deepcovelabs.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Then you would just pass byte array to #downloadBytes, say<br><br>self<br> downloadBytes: &#39;c:\play.wav&#39; asFilename contentsOfEntireBinaryFile</blockquote><div><br>how would&nbsp; #contentsOfEntireBinaryFile be implemented? That is if I intend to allow the download of an entire audio file that is in my server?. 
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&nbsp;&nbsp;&nbsp;&nbsp;mime: &#39;audio/x-wav&#39;<br>&nbsp;&nbsp;&nbsp;&nbsp;filename: &#39;play.wav&#39;];<br> with: &#39;Download WAV File!&#39;.
<br><br>It all depends on what it is you are trying to achieve I guess.<br><br>-Boris<br><br>--<br>+1.604.689.0322<br>DeepCove Labs Ltd.<br>4th floor 595 Howe Street<br>Vancouver, Canada V6C 2T5<br><a href="http://tinyurl.com/r7uw4">
http://tinyurl.com/r7uw4</a><br><br><a href="mailto:boris@deepcovelabs.com">boris@deepcovelabs.com</a><br><br>CONFIDENTIALITY NOTICE<br><br>This email is intended only for the persons named in the message<br>header. Unless otherwise indicated, it contains information that is
<br>private and confidential. If you have received it in error, please<br>notify the sender and delete the entire message including any<br>attachments.<br><br>Thank you.<br>________________________________________<br>From: 
<a href="mailto:seaside-bounces@lists.squeakfoundation.org">seaside-bounces@lists.squeakfoundation.org</a> [mailto:<a href="mailto:seaside-bounces@lists.squeakfoundation.org">seaside-bounces@lists.squeakfoundation.org</a>
] On Behalf Of Ching de la Serna<br>Sent: Friday, August 10, 2007 4:34 PM<br>To: Seaside - general discussion<br>Subject: Re: [Seaside] How to allow downloads in Seaside?<br><br>Thanks Boris.<br>On 8/11/07, Boris Popov &lt;
<a href="mailto:boris@deepcovelabs.com">boris@deepcovelabs.com</a>&gt; wrote:<br>Sigh, obviously anchor would need to be closed,<br><br>html anchor<br>callback: [self<br>downloadBytes: self asCSV<br><br>could you show me sample code on #asCSV? I am thinking of music files to be downloaded.
<br><br>mime: &#39;text/csv&#39;<br>filename: &#39;export.csv &#39;];<br>with: &#39;Export&#39;.<br><br>Cheers,<br><br>-Boris<br><br>--<br>+1.604.689.0322<br>DeepCove Labs Ltd.<br>4th floor 595 Howe Street<br>Vancouver, Canada V6C 2T5
<br><a href="http://tinyurl.com/r7uw4">http://tinyurl.com/r7uw4</a><br><br><a href="mailto:boris@deepcovelabs.com">boris@deepcovelabs.com</a><br><br>CONFIDENTIALITY NOTICE<br><br>This email is intended only for the persons named in the message
<br>header. Unless otherwise indicated, it contains information that is<br>private and confidential. If you have received it in error, please<br>notify the sender and delete the entire message including any<br>attachments.
<br><br>Thank you.<br><br>&gt; -----Original Message-----<br>&gt; From: <a href="mailto:seaside-bounces@lists.squeakfoundation.org">seaside-bounces@lists.squeakfoundation.org</a> [mailto:<a href="mailto:seaside-">seaside-
</a><br>&gt; <a href="mailto:bounces@lists.squeakfoundation.org">bounces@lists.squeakfoundation.org</a> ] On Behalf Of Boris Popov<br>&gt; Sent: Friday, August 10, 2007 3:56 PM<br>&gt; To: Seaside - general discussion<br>
&gt; Subject: RE: [Seaside] How to allow downloads in Seaside?<br>&gt;<br>&gt; I use the following extension on WAComponent,<br>&gt;<br>&gt; downloadBytes: bytes mime: mime filename: filename<br>&gt;^self session returnResponse: (WADocumentHandler
<br>&gt; document: bytes<br>&gt; mimeType: mime<br>&gt; fileName: filename) response<br>&gt;<br>&gt; which is then called from a callback, say<br>&gt;<br>&gt; html anchor<br>&gt; callback: [self<br>&gt; downloadBytes: self asCSV
<br>&gt; mime: &#39;text/csv&#39;<br>&gt; filename: &#39;export.csv&#39;].<br>&gt;<br>&gt; Hope this helps,<br>&gt;<br>&gt; Cheers!<br>&gt;<br>&gt; -Boris<br>&gt;<br>&gt; --<br>&gt; +1.604.689.0322<br>&gt; DeepCove Labs Ltd.
<br>&gt; 4th floor 595 Howe Street<br>&gt; Vancouver, Canada V6C 2T5<br>&gt; <a href="http://tinyurl.com/r7uw4">http://tinyurl.com/r7uw4</a><br>&gt;<br>&gt; <a href="mailto:boris@deepcovelabs.com">boris@deepcovelabs.com</a>
<br>&gt;<br>&gt; CONFIDENTIALITY NOTICE<br>&gt;<br>&gt; This email is intended only for the persons named in the message<br>&gt; header. Unless otherwise indicated, it contains information that is<br>&gt; private and confidential. If you have received it in error, please
<br>&gt; notify the sender and delete the entire message including any<br>&gt; attachments.<br>&gt;<br>&gt; Thank you.<br>&gt;<br>&gt; &gt; -----Original Message-----<br>&gt; &gt; From: <a href="mailto:seaside-bounces@lists.squeakfoundation.org">
seaside-bounces@lists.squeakfoundation.org</a> [mailto:<a href="mailto:seaside-">seaside-</a><br>&gt; &gt; <a href="mailto:bounces@lists.squeakfoundation.org">bounces@lists.squeakfoundation.org</a>] On Behalf Of Ching de la Serna
<br>&gt; &gt; Sent: Friday, August 10, 2007 3:23 PM<br>&gt; &gt; To: <a href="mailto:Seaside@lists.squeakfoundation.org">Seaside@lists.squeakfoundation.org</a><br>&gt; &gt; Subject: [Seaside] How to allow downloads in Seaside?
<br>&gt; &gt;<br>&gt; &gt; Hi,<br>&gt; &gt;<br>&gt; &gt; If I were to allow downloads from my webpage, how would I go about<br>it?<br>&gt; &gt; Does Seaside have a method for doing this? Many thanks.<br>&gt; &gt;<br>&gt; &gt; Ching
<br>&gt;<br>&gt; _______________________________________________<br>&gt; Seaside mailing list<br>&gt; <a href="mailto:Seaside@lists.squeakfoundation.org">Seaside@lists.squeakfoundation.org</a><br>&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>_______________________________________________<br>Seaside mailing list<br><a href="mailto:Seaside@lists.squeakfoundation.org">Seaside@lists.squeakfoundation.org
</a><br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br><br>_______________________________________________<br>Seaside mailing list
<br><a href="mailto:Seaside@lists.squeakfoundation.org">Seaside@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
</a><br></blockquote></div><br>