Philippe Marschall philippe.marschall at gmail.com
Sun Aug 12 11:10:18 UTC 2007

2007/8/12, Ching de la Serna <ching.dls at gmail.com>:
>
>  (FileStream fileNamed: '.\somefolder\demo.mp3') is the receiver

What object receives #contentsOfEntireFile? Or to put it in an other
way, to what does (FileStream fileNamed: '.\somefolder\demo.mp3')
evaluate?

Cheers
Philippe

> On 8/12/07, Philippe Marschall < philippe.marschall at gmail.com> wrote:
> >
> > 2007/8/12, Ching de la Serna < ching.dls at gmail.com>:
> > > Hi,
> > >
> > > I did a bit of testing and I can get text files downloaded but not mp3
> or
> > > audio files. A message not understood #contentsOfEntireFile is returned.
> > > Does anyone have any ideas?
> > >
> > > This is the errant code:
> > > (FileStream fileNamed: '.\somefolder\demo.mp3') contentsOfEntireFile
> >
> > What is the receiver?
> >
> > Cheers
> > Philippe
> >
> > > Ching
> > >
> > >
> > >
> > > On 8/11/07, Ching de la Serna <ching.dls at gmail.com> wrote:
> > > >
> > > >
> > > > On 8/11/07, Ching de la Serna < ching.dls at gmail.com > wrote:
> > > > > Thanks, Patrick. I will give it a try.If this works then I will have
> to
> > > look for some files to serve.
> > > > >
> > > > > Ching
> > > > >
> > > > >
> > > > >
> > > > > On 8/11/07, Patrick Collison < patrick at collison.ie> wrote:
> > > > > > On 11/08/07, Ching de la Serna < ching.dls at gmail.com> wrote:
> > > > > > > Thanks again, Boris. I am using Squeak. I suppose there is an
> > > equivalent
> > > > > > > method? I am looking at ByteArray in Squeak and I do not see a
> > > method
> > > > > > > similar in name to #contentsOfEntireBinaryFile.
> > > > > >
> > > > > > (FileStream fileNamed: 'foo') binary contents
> > > > >
> > > >
> > > >
> > > > as in:  self
> > > contents
> > > >             mime: 'audio/x-wav'
> > > >             filename: 'play.wav'];
> > > > This is what I have and  a file was downloaded with 0 bytes. Any
> ideas,
> > > anyone?
> > > >
> > > >
> > > >
> > > > >
> > > > >
> > > > >
> > > > > > > On 8/11/07, Boris Popov < boris at deepcovelabs.com > wrote:
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Its a standard method in visualworks to read entire file into
> a
> > > byte
> > > > > > > array.
> > > > > > > >
> > > > > > > > Cheers!
> > > > > > > >
> > > > > > > > -Boris
> > > > > > > > (Sent from a BlackBerry)
> > > > > > > >
> > > > > > > > ----- Original Message -----
> > > > > > > > From:
> > > > > > > seaside-bounces at lists.squeakfoundation.org
> > > > > > > <
> > > > > > > seaside-bounces at lists.squeakfoundation.org >
> > > > > > > > To: Seaside - general discussion
> > > > > > > <seaside at lists.squeakfoundation.org >
> > > > > > > > Sent: Fri Aug 10 16:50:51 2007
> > > > > > > > Subject: Re: [Seaside] How to allow downloads in Seaside?
> > > > > > > >
> > > > > > > > Thanks again, Boris.
> > > > > > > >
> > > > > > > >
> > > > > > > > On 8/11/07, Boris Popov < boris at deepcovelabs.com> wrote:
> > > > > > > >
> > > > > > > >         Then you would just pass byte array to #downloadBytes,
> say
> > > > > > > >
> > > > > > > >         self
> > > contentsOfEntireBinaryFile
> > > > > > > >
> > > > > > > >
> > > > > > > > how would  #contentsOfEntireBinaryFile be
> > > implemented? That is if I intend
> > > > > > > to allow the download of an entire audio file that is in my
> server?.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >             mime: 'audio/x-wav'
> > > > > > > >             filename: ' play.wav'];
> > > > > > > >         with: 'Download WAV File!'.
> > > > > > > >
> > > > > > > >         It all depends on what it is you are trying to achieve
> I
> > > guess.
> > > > > > > >
> > > > > > > >         -Boris
> > > > > > > >
> > > > > > > >         --
> > > > > > > >         +1.604.689.0322
> > > > > > > >         DeepCove Labs Ltd.
> > > > > > > >         4th floor 595 Howe Street
> > > > > > > >         Vancouver, Canada V6C 2T5
> > > > > > > >         http://tinyurl.com/r7uw4 < http://tinyurl.com/r7uw4>
> > > > > > > >
> > > > > > > >
> > > > > > > >         boris at deepcovelabs.com
> > > > > > > >
> > > > > > > >         CONFIDENTIALITY NOTICE
> > > > > > > >
> > > > > > > >         This email is intended only for the persons named in
> the
> > > message
> > > > > > > >         header. Unless otherwise indicated, it contains
> > > information that
> > > > > > > is
> > > > > > > >         private and confidential. If you have received it in
> > > > > > > >         notify the sender and delete the entire message
> including
> > > any
> > > > > > > >         attachments.
> > > > > > > >
> > > > > > > >         Thank you.
> > > > > > > >
> ________________________________________
> > > > > > > >         From:
> > > > > > > seaside-bounces at lists.squeakfoundation.org
> > > > > > > [
> > > > > > >
> mailto:seaside-bounces at lists.squeakfoundation.org
> > > > > > > ] On Behalf Of Ching de la Serna
> > > > > > > >         Sent: Friday, August 10, 2007 4:34 PM
> > > > > > > >         To: Seaside - general discussion
> > > > > > > >         Subject: Re: [Seaside] How to allow downloads in
> Seaside?
> > > > > > > >
> > > > > > > >         Thanks Boris.
> > > > > > > >         On 8/11/07, Boris Popov < boris at deepcovelabs.com >
> wrote:
> > > > > > > >         Sigh, obviously anchor would need to be closed,
> > > > > > > >
> > > > > > > >         html anchor
> > > > > > > >         callback: [self
> > > > > > > >
> > > > > > > >         could you show me sample code on #asCSV? I am thinking
> of
> > > music
> > > > > > > >
> > > > > > > >         mime: 'text/csv'
> > > > > > > >         filename: 'export.csv '];
> > > > > > > >         with: 'Export'.
> > > > > > > >
> > > > > > > >         Cheers,
> > > > > > > >
> > > > > > > >         -Boris
> > > > > > > >
> > > > > > > >         --
> > > > > > > >         +1.604.689.0322
> > > > > > > >         DeepCove Labs Ltd.
> > > > > > > >         4th floor 595 Howe Street
> > > > > > > >         Vancouver, Canada V6C 2T5
> > > > > > > >         http://tinyurl.com/r7uw4
> > > > > > > >
> > > > > > > >         boris at deepcovelabs.com
> > > > > > > >
> > > > > > > >         CONFIDENTIALITY NOTICE
> > > > > > > >
> > > > > > > >         This email is intended only for the persons named in
> the
> > > message
> > > > > > > >         header. Unless otherwise indicated, it contains
> > > information that
> > > > > > > is
> > > > > > > >         private and confidential. If you have received it in
> > > > > > > >         notify the sender and delete the entire message
> including
> > > any
> > > > > > > >         attachments.
> > > > > > > >
> > > > > > > >         Thank you.
> > > > > > > >
> > > > > > > >         > -----Original Message-----
> > > > > > > >
> > > > > > > >         > From:
> > > > > > > seaside-bounces at lists.squeakfoundation.org
> > > > > > > [ mailto:seaside- <mailto: seaside->
> > > > > > > >         >
> > > > > > > bounces at lists.squeakfoundation.org ] On
> > > > > > > Behalf Of Boris Popov
> > > > > > > >         > Sent: Friday, August 10, 2007 3:56 PM
> > > > > > > >         > To: Seaside - general discussion
> > > > > > > >         > Subject: RE: [Seaside] How to allow downloads in
> > > Seaside?
> > > > > > > >         >
> > > > > > > >         > I use the following extension on WAComponent,
> > > > > > > >         >
> > > > > > > >         > downloadBytes: bytes mime: mime filename: filename
> > > > > > > >         >^self session returnResponse: (WADocumentHandler
> > > > > > > >         > document: bytes
> > > > > > > >         > mimeType: mime
> > > > > > > >         > fileName: filename) response
> > > > > > > >         >
> > > > > > > >         > which is then called from a callback, say
> > > > > > > >         >
> > > > > > > >         > html anchor
> > > > > > > >         > callback: [self
> > > > > > > >         > downloadBytes: self asCSV
> > > > > > > >         > mime: 'text/csv'
> > > > > > > >         > filename: ' export.csv'].
> > > > > > > >         >
> > > > > > > >         > Hope this helps,
> > > > > > > >         >
> > > > > > > >         > Cheers!
> > > > > > > >         >
> > > > > > > >         > -Boris
> > > > > > > >         >
> > > > > > > >         > --
> > > > > > > >         > +1.604.689.0322
> > > > > > > >         > DeepCove Labs Ltd.
> > > > > > > >         > 4th floor 595 Howe Street
> > > > > > > >         > Vancouver, Canada V6C 2T5
> > > > > > > >         > http://tinyurl.com/r7uw4
> > > > > > > >         >
> > > > > > > >         > boris at deepcovelabs.com
> > > > > > > >         >
> > > > > > > >         > CONFIDENTIALITY NOTICE
> > > > > > > >         >
> > > > > > > >         > This email is intended only for the persons named in
> the
> > > message
> > > > > > > >         > header. Unless otherwise indicated, it contains
> > > information that
> > > > > > > is
> > > > > > > >         > private and confidential. If you have received it in
> > > error,
> > > > > > > please
> > > > > > > >         > notify the sender and delete the entire message
> > > including any
> > > > > > > >         > attachments.
> > > > > > > >         >
> > > > > > > >         > Thank you.
> > > > > > > >         >
> > > > > > > >         > > -----Original Message-----
> > > > > > > >         > > From:
> > > > > > > seaside-bounces at lists.squeakfoundation.org
> > > > > > > <
> > > > > > >
> mailto:seaside-bounces at lists.squeakfoundation.org >
> > > > > > >  [mailto: seaside-
> > > > > > > >         > >
> > > > > > > bounces at lists.squeakfoundation.org] On
> > > > > > > Behalf Of Ching de la Serna
> > > > > > > >         > > Sent: Friday, August 10, 2007 3:23 PM
> > > > > > > >         > > To:
> > > > > > > Seaside at lists.squeakfoundation.org
> > > > > > > >         > > Subject: [Seaside] How to allow downloads in
> Seaside?
> > > > > > > >         > >
> > > > > > > >         > > Hi,
> > > > > > > >         > >
> > > > > > > >         > > If I were to allow downloads from my webpage, how
> > > would I go
> > > > > > > about
> > > > > > > >         it?
> > > > > > > >         > > Does Seaside have a method for doing this? Many
> > > thanks.
> > > > > > > >         > >
> > > > > > > >         > > Ching
> > > > > > > >         >
> > > > > > > >         >
> > > _______________________________________________
> > > > > > > >         > Seaside mailing list
> > > > > > > >         >
> > > > > > > Seaside at lists.squeakfoundation.org
> > > > > > > >         >
> > > > > > >
> > >
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> > > > > > >
> > > > > > > <
> > >
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> > > > > > > >
> > > > > > > >
> > > _______________________________________________
> > > > > > > >         Seaside mailing list
> > > > > > > >
> > > > > > > Seaside at lists.squeakfoundation.org <
> > > > > > > mailto:Seaside at lists.squeakfoundation.org>
> > > > > > > >
> > > > > > >
> > >
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> > > > > > >
> > > > > > > >
> > > > > > > >
> > > _______________________________________________
> > > > > > > >         Seaside mailing list
> > > > > > > >
> > > > > > > Seaside at lists.squeakfoundation.org
> > > > > > > >
> > > > > > >
> > >
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> > > > > > >
> > > > > > > <
> > >
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> _______________________________________________
> > > > > > > > Seaside mailing list
> > > > > > > > Seaside at lists.squeakfoundation.org
> > > > > > > >
> > > > > > >
> > >
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > _______________________________________________
> > > > > > > Seaside mailing list
> > > > > > > Seaside at lists.squeakfoundation.org
> > > > > > >
> > >
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> > > > > > >
> > > > > > >
> > > > > > _______________________________________________
> > > > > > Seaside mailing list
> > > > > > Seaside at lists.squeakfoundation.org
> > > > > >
> > >
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> > > _______________________________________________
> > > Seaside mailing list
> > > Seaside at lists.squeakfoundation.org
> > >
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> > >
> > >
> > _______________________________________________
> > Seaside mailing list
> > Seaside at lists.squeakfoundation.org
> >
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
>
>
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>