I'm inserting some files into a database.
I use the CFFILE tag to upload them to a temp location, then I use <CFFILE Action="binaryread"> to read it in as a variable. I then use the ToBase64 function and insert it into a database table.
On the admin side of the site I read the file from the database then use the tobinary function and write it to a temp location for downloading.
If the file is less then 20 K this works flawlessly.
On files that are greater then 20 K the ToBase64 seems to fail.
I get this error on the admin side
Parameter 1 of funtion toBinary which is now blahblahblah must be a base64-encoded string.
Is there a size limit that the ToBase64 function has?
and if so how do I get around this?
I use the CFFILE tag to upload them to a temp location, then I use <CFFILE Action="binaryread"> to read it in as a variable. I then use the ToBase64 function and insert it into a database table.
On the admin side of the site I read the file from the database then use the tobinary function and write it to a temp location for downloading.
If the file is less then 20 K this works flawlessly.
On files that are greater then 20 K the ToBase64 seems to fail.
I get this error on the admin side
Parameter 1 of funtion toBinary which is now blahblahblah must be a base64-encoded string.
Is there a size limit that the ToBase64 function has?
and if so how do I get around this?