Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
Jfill #1
Reading Binary File
I am converting a PHP script and I need to know what the eqivelent of "fread('file', 1)" for CF. I am reading a binary file.
Jfill Guest
-
flash reading binary from a database
i'm storing videos and images inside a blob in mysql and i need to have flash 8 read the files. right now i'm querying the database using php and... -
Binary file IO
Hi, What I would like to do is load a file's contents from a file on the server and put the contents into a record in a database. For this I... -
How to get binary file from SQL field?
I want to display binary data from SQL server 2000 in an asp page. The data comes from a Windows Sharepoint Services document library. The raw... -
Why can't I create a binary file ?
open FH, ">1.txt"; binmode FH; binmode STDOUT; print FH "123m,zxnc,mzxnc,mzncm,zxc"; close FH; Why the output still a text file ? -
Output binary file
the company I work for sometimes has users link to our banners, and display them on there own sites. the problem is that some of the banners have... -
PaulKD #2
Re: Reading Binary File
CFFile syntax from the MX Reference Manual attached
<cffile
action = "readBinary"
file = "full_path_name"
variable = "var_name">
PaulKD Guest
-
Jfill #3
Re: Reading Binary File
PaulKD,
Yeah I can read the file, but fread does the following
fread(param_1, param_2);
reads from a IO handle named in param_1, it reads the total bytes named in
param_2. If param_2 is bigger then the file length then fread() will read until
EOF <- en of file!
So I guess I need to read byte by byte..... how is that done?
Jfill Guest
-
Jfill #4
Re: Reading Binary File
Ok I think I stumbled on it:
"....you can access the individual bytes using normal array notation, such as MyBinary[5] to access the fifth byte."
Jfill Guest



Reply With Quote

