Hi John,
Your new information does make my previous post redundant :-)
However I disagree when you say.

"cURL can send files when given the filename, so I have to write the filename from the database and then give cURL the path.

But thats messy"

IMHO this is a lot less messier than the current approach . You have to also keep in mind that using blobs puts just a wee bit more load on the database server.

Getting back to the problem at hand how about invoking one of the curl binaries and piping output from your blob into it?

best regards




John Ryan wrote:


Sorry, I should have said. Im trying to send this file to an external
multipart form script which converts the file to the desired format. Im
using cURL to do this. cURL can send files when given the filename, so I
have to write the filename from the database and then give cURL the path.
But thats messy

I want to be able to get the BINARY data from mySQL and send it via cURL
directly.





--
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/         | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to