fractalvibes
09-26-2002, 12:40 AM
I have used the following technique with great success in both ASP and PHP:
Store an image (jpeg or gif) in a database as a blob, along with content-type and some ID nbr. Write a handler script, so that image tags look like:
img src=ShowImage.asp?ID=99 (or ShowImage.php!)
Show Image reads the row for ID 99, set's its http header content-type appropriately, and does a response.binarywrite myimage or an echo $myimage
I am trying to the same thing with mp3 files and real audio. I have ram files (for real audio) and m3u files (for mp3) that refer to
PlayAudio.php?ID=99 rather than to mytune.ra or mytune.mp3.
THe m3u will stream for < 30 seconds. THe Real Audio will not at
all....so I am thinking it might be an Apache issue?
Dunno - anyone ever tried this?
thanks,
Phil J.
Store an image (jpeg or gif) in a database as a blob, along with content-type and some ID nbr. Write a handler script, so that image tags look like:
img src=ShowImage.asp?ID=99 (or ShowImage.php!)
Show Image reads the row for ID 99, set's its http header content-type appropriately, and does a response.binarywrite myimage or an echo $myimage
I am trying to the same thing with mp3 files and real audio. I have ram files (for real audio) and m3u files (for mp3) that refer to
PlayAudio.php?ID=99 rather than to mytune.ra or mytune.mp3.
THe m3u will stream for < 30 seconds. THe Real Audio will not at
all....so I am thinking it might be an Apache issue?
Dunno - anyone ever tried this?
thanks,
Phil J.