Reading Bits from Oracle (advice needed from Guru)

One of my clients asked me today if it was possible to read a stream of bits from an oracle database (header and file information for jpegs, mp3’s and such) into flash and reconstruct them to display the picture or play the sound or video. I told him that probably the best way to do it is to write a server-side script in php (cfml he’ll probably use, he said) and have it write the file and then read it from flash, because I didn’t think that it was possible to have flash reconstruct the file. (Maybe the picture file using binary bitshifting and the color object, but that’s just absurd sounding to me.)

Anyways, is there anything I’m missing? I’d doubt they’d want to use flashcomm server because of the expense, but if it’s possible in any way, shape or form please direct me to where I can read up about it.

Thanks to anyone who answers,

–EP