Spec-Zone.ru › ColdFusion

fileReadBinary

Reads an on-disk or in-memory binary file (such as an executable or image file) on the server, into a binary object

fileReadBinary(filePath) → returns binary

  • CF8+
  • Lucee
  • BL 1.0.0+
  • See Also: fileRead fileReadLine

    Argument Reference

    filePath string
    Required

    Absolute path to the file.

    Examples
    Sample code invoking the fileReadBinary function

    Read a file into a binary object

    Uses expandPath to grab a file in current directory.

    binaryContent = fileReadBinary(expandPath('./file.pdf'));

    © 2012–present Foundeo, Inc. and the CFDocs contributors.
    Licensed under the MIT License.
    ColdFusion is a trademark of Adobe Systems Incorporated.
    https://cfdocs.org/filereadbinary

    Spec-Zone.ru

    Настройки Оффлайн Что нового Помощь О нас
    Spec-Zone .ru
    спецификации, руководства, описания, API