Ask a Question related to Coldfusion Database Access, Design and Development.
-
Nate #1
Parameter 1 of function toBinary which is now '<data>' must be a base64-encoded string?
Hi All,
I have some file upload/download code that used to be working, but
suddenly stopped working with the error 'Parameter 1 of function
toBinary which is now '<data...>' must be a base64-encoded string?'. I
am using MS SQL 7.0 with nText size 16 datatype, and Cold Fusion 4.5.
When I run the following code, I get the above error at the line with
the <CFFILE> tag.
<!---------------------------------------
Set zip file source and destination information.
---------------------------------------->
<CFSET originalname = "#zipurl#"> <!---(From table)--->
<!--- Setup a temp filename. --->
<CFSET zipsourceurl =
"#ExpandPath(APPLICATION.ZIPPATH)#\#randRange(1000 00,999999)#.zip">
<!--- Write the file to disk --->
<CFFILE ACTION="write" FILE="#zipsourceurl#"
OUTPUT="#toBinary(securezipfile)#" addnewline="No">
<CFCONTENT TYPE="application/x-zip-compressed" FILE="#zipsourceurl#"
DELETEFILE="Yes">
Do you know what is wrong?
Thanks,
Nate
Nate Guest
-
#40703 [NEW]: PHP 5.2.1 - MySQL 5.2.3 - Internal Function Conflict in base64.h
From: sietse at wizdom dot nu Operating system: All PHP version: 5.2.1 PHP Bug Type: XMLRPC-EPI related Bug description: ... -
Databinding: How do I use the data as a parameter for a method or function?
I am using a SortedList as my DataSource. However, one of the things I am using the data for is to generate the URL for the HyperLinks in my... -
using http post to transfer Base64 data to a web service
I'm somewhat new to web services, but I know enough to create a basic application. I need to transmit Base64 data to a web service. To be more... -
#25333 [Com]: symptom: mail() stripped chars from base64 data block
ID: 25333 Comment by: jdpohl at comcast dot net Reported By: ap at d-dt dot de Status: Closed Bug Type: ... -
base64 encoding a replace string
I've got the example below to set up phpOpenTracker to log exit URL's but I'm having trouble getting it to work. I have played with the quotes and... -
Nate #2
Re: Parameter 1 of function toBinary which is now '<data>' must be a base64-encoded string?
Maybe no responses because you are all too busy?
I still have no clue why the downloading is all of a sudden erroring
out with the error code I mentioned? Could it have to do with
replication? A change from a binary or image data type into a nText SQL
Server 7.0 data type? Permissions issue?
Thx,
Nate
Nate Guest
-
Nate #3
Re: Parameter 1 of function toBinary which is now '<data>' must be a base64-encoded string?
The problem was that I needed to enable retrieval of long text in the
Cold Fusion 4.5 Administrator ODBC datasource configuration pages.
Remember to stop and start Cold Fusion services.
Everything is working great now!
-N
Nate Guest



Reply With Quote

