?
Solved

When I use cffile with readBinary, only 1 byte txt file takes too long to read. What am i doing wrong?

Posted on 2009-02-20
2
Medium Priority
?
226 Views
Last Modified: 2013-12-24
Here is my code:

<cffile action="readBinary" file="myfile.txt" variable="myFileContent">

file is a text file that only contains "1" as content.

Thanks a lot
0
Comment
Question by:tekas
2 Comments
 
LVL 27

Expert Comment

by:azadisaryev
ID: 23700849
why are you using ReadBinary on a non-binary file???
use action="read" instead to read plain-text files into memory.

Azadi
0
 

Accepted Solution

by:
tekas earned 0 total points
ID: 23896401
I'll send the uploaded file to a web service that requires the file as binary, that's why I use ReadBinary.

<cffile action="readBinary" file="#uploadedFileNameFull#" variable="uploadedFiles[#file_ind#]">

This code works fine. "Being slow" problem occured because of server i guess. Thanks for your time.
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are like me and like multiple layers of protection, read on!
Have you ever run into that annoying problem where the computer won't boot?  Wouldn't it be great if you had a tool that would make that disk boot again?  I have found one tool that works more often than not ...
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question