Parameter 1 of function toBinary which is now '<data>' must be a base64-encoded string?

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. #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: ...
    2. 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...
    3. 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...
    4. #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: ...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139