[Vtigercrm-developers] How to stream data directly to database without reading entire file into memory?

Mike Fedyk mfedyk at mikefedyk.com
Mon Mar 6 02:32:17 PST 2006


Hi all,

I'm having an issue with the upload code.  It reads the entire file into 
memory and base64 encodes it before sending it to the database.  It 
fails storing a 5MB file with a 32MB memory limit.

I looked through the adodb docs and thought I found a solution with 
UpdateBlobFile, but it reads the entire file into memory also.  
Searching through google didn't turn anything up for php, I found a few 
things for VB or .net but that won't help us here.

Anyone have a solution?


More information about the vtigercrm-developers mailing list