Index

(filesystem)

o2file_encode

string o2file_encode(string $file_path)

Returns a base64 represntation a the file content.
Useful to embed binary data into plain-text context (xml, email body, etc...).


Parameters:
  1. $file_path
  2. File to encode