Re: included file; blob data
From: Leonid (leonid_at_NOgradaSPAM.lv)
Date: 12/12/04
- Next message: Neil Waterworth: "Re: Anyone using Samba 3 w/vfp app?"
- Previous message: Leonid: "Re: table structure"
- In reply to: Paul Pedersen: "included file; blob data"
- Next in thread: Paul Pedersen: "Re: included file; blob data"
- Reply: Paul Pedersen: "Re: included file; blob data"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 12 Dec 2004 13:01:20 +0200
If mysound.wav is included in exe, then you can't copy it to disk with the
same name even if you included full path. Both Copy file and Strtofile will
fail. But you may copy it with different name. So I suggest you to include
file "mysound.wa_" into exe and then
strtofile(filetostr("mysound.wa_"),"tempdir\mysound.wav")
will do the work
Leonid
"Paul Pedersen" <no-reply@swen.com> wrote in message
news:%23UxMLHx3EHA.3336@TK2MSFTNGP11.phx.gbl...
> (1) My application needs to write a (fixed) wav file to disk. I tried
> including the file in the build, but that did not work. Even though
> FILE("mysound.wav") returns .T., COPY FILE mysound.wav TO
> tempdir\mysound.wav fails with "file not found".
>
> (2) So then I had the idea of creating a table with the sound in a blob
> field (obviously I'm using VFP9), and including that table in the build.
> Then I realized I don't know how to get data into/out of blob fields.
> APPEND GENERAL doesn't work, and there is no APPEND BLOB.
>
> Can anyone solve (1) and/or (2)?
>
>
>
>
- Next message: Neil Waterworth: "Re: Anyone using Samba 3 w/vfp app?"
- Previous message: Leonid: "Re: table structure"
- In reply to: Paul Pedersen: "included file; blob data"
- Next in thread: Paul Pedersen: "Re: included file; blob data"
- Reply: Paul Pedersen: "Re: included file; blob data"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|