Basic Syntax CrystalClear Syntax Before Reading Records

BytesFromFile( String )


Basic and Crystal Syntax

Description:

Reads a file from the specified path or URL and returns its binary data. This function may be very helpful to load images from a file or an URL. If you have create a formula with a return type of binary then you can drag and drop the formula in the report to show it as dynamic picture.

Usage:

BytesFromFile( String )

Parameters:

String An URL or a path to a file. The binary data of this file will be returned.

Returns:

Binary

Examples:

BytesFromFile("C:/test.jpg");	// Returns the image in c:/test.jpg as a byte array.
BytesFromFile("http://myserver.com/images/logo.gif")
//returns the image which can be found at the URL http://myserver.com/images.logo.gif

The supported picture formats are:

 

See also:


i-net software strives to provide accurate product documentation. Please give us your feedback using the form below.
NOTE: This form is for documentation feedback only. For technical assistance, please send an email to crystalclear@inetsoftware.de.

This page is: very poor very good
Comment: