I will need to do some reading & fillding to try the Java suggestions,
but I will.
IF I can find/access the file with Java, then I guess I will need to
read it into a variable so I can serve it with cfcontent.
I'd rather just cfcontent the file, but this would be acceptable.
Dick
leaning towards learning Java -- then I'll really be dangerous!
On Jun 29, 2004, at 5:29 PM, Barney Boisvert wrote:
> Can you create a java.io.File object with the path, and get any
> attributes
> (like it's size)?��What does getCanonicalPath() return?
>
> You on windows, or your Mac?��If you're on windows, you could manually
> conver the directories to the progra~1 style, and then use that.
>
> Cheers,
> barneyb
>
> > -----Original Message-----
> > From: Dick Applebaum [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, June 29, 2004 5:19 PM
> > To: CF-Talk
> > Subject: Re: Create Links Symlinks with CFMX/Java
> >
> > On Jun 29, 2004, at 12:56 PM, Mark Drew wrote:
> >
> > > I am not sure if this would work (as I am not sure what
> > precicely you
> > >��are trying to achieve) but would CF mappings help in this case?
> >
> > I don't think mappings are the answer.
> >
> > Here's an example of the specific problem -- I want to serve an .mp3
> > (could be a .mov) file from Apples iTunes directory
> > sub-structure which
> > might look as follows:
> >
> > --artist
> > ----album
> > -------track (song) name
> >
> > or
> >
> > --Willie Nelson & Ray Charles
> > ----unKnown Album
> > ------Seven Spanish Angels.mp3
> >
> > AFAIK, these fields can contain any valid character except colon (:)
> >
> > Now, I get the path to the tracks by parsing an XML file
> > which yields a
> > path:
> >
> > ..../iTunes Music/Willie Nelson & Ray Charles/unKnown Album/Seven
> > Spanish Angels.mp3
> >
> > If I try to serve this with CFContent :
> >
> > <cfcontent type = "audio/mp3"
> > file=#FilePath#
> > deleteFile = "No">
> >
> > CFMX can't find the file -- it barfs on the & -- and I don't know
> how
> > to escape it
> >
> > I suppose I could use a mapping and cflocation, but that exposes my
> > file/directory structure.
> >
> > Dick
> >
> > "In times like these, it helps to recall that
> > there have always been times like these."
> > - Paul Harvey -
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

