[drupal-devel] OT: Binary data.
Karoly Negyesi
karoly at negyesi.net
Tue Mar 15 14:13:09 UTC 2005
> fgets and fread are binary safe as I know. But there is no function to
> calculate the binary size of the data. You have to do this manually.
From the User Contributed Notes on fwrite:
note that fwrite() is binary-safe with strings only - you cannot write
binary data with it (ie 32-bit integers, 1 (d)word etc)
Trying to fwrite() an int will cause the int to be converted into string and
then written as string.
More information about the drupal-devel
mailing list