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

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

2003-11-14 Thread Raditha Dissanayake
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 a

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

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

Re: [PHP] Mulitpart form posts and mysql blobs

2003-11-14 Thread Raditha Dissanayake
Hi, Haven't really done much work with blobs ( i always prefer to save just the file name in the databse) obviously this is a scenario where that approach is advantages. multipart/form-data isn't a very complex encoding scheme. Essentially what it does is combine all the files and other form f

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

[PHP] Mulitpart form posts and mysql blobs

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