Re: [PHP-DB] Insert images into blob field in MySQL

2002-06-03 Thread Jason Wong
On Monday 03 June 2002 17:23, nauti wrote: > Hi, i am having a problem with my mysql database inserting images in a blob > field. I upload files from a form using the following code: [snip] > half image only, and size is always 65535 bytes. > > Is maybe any limitation in the way i do the upload?

[PHP-DB] Insert images into blob field in MySQL

2002-06-03 Thread nauti
Hi, i am having a problem with my mysql database inserting images in a blob field. I upload files from a form using the following code: if (isset($binFile) && $binFile != "none") { $data = addslashes(fread(fopen($binFile, "r"), filesize($binFile))); } else { $data = ""; }