[PHP-DB] Re: [PHP] Mulitpart form posts and mysql blobs

2003-11-14 Thread John W. Holmes
John Ryan wrote:
How are files encoded when theyre sent in mulitpart forms??? Is it the same
as blob fields in mySQL databased when you use the LOAD_FILE() command??
If not, is it easy to convert from one to the other?? At the moment, Im
taking the blob from mySQL and writing it to a file and then uploading that
file through cURL! Very messy.
So what are you actually trying to accomplish? Moving a file from one 
server to another???

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals  www.phparch.com

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


Re: [PHP-DB] Re: [PHP] Mulitpart form posts and mysql blobs

2003-11-14 Thread John Ryan
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.

TIA
- Original Message -
From: John W. Holmes [EMAIL PROTECTED]
To: John Ryan [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, November 15, 2003 1:22 AM
Subject: [PHP-DB] Re: [PHP] Mulitpart form posts and mysql blobs


John Ryan wrote:
 How are files encoded when theyre sent in mulitpart forms??? Is it the
same
 as blob fields in mySQL databased when you use the LOAD_FILE() command??

 If not, is it easy to convert from one to the other?? At the moment, Im
 taking the blob from mySQL and writing it to a file and then uploading
that
 file through cURL! Very messy.

So what are you actually trying to accomplish? Moving a file from one
server to another???

--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals  www.phparch.com

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

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



[PHP-DB] Re: [PHP] Re: [PHP-DB] Re: [PHP] Mulitpart form posts and mysql blobs

2003-11-14 Thread John W. Holmes
John Ryan wrote:

cURL can send files when given the filename, so I
have to write the filename from the database and then give cURL the path.
Kind of begs the question of why you're storing files in the database in 
the first place...

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals  www.phparch.com



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