Basic and Crystal Syntax
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.
BytesFromFile( String )
| String | An URL or a path to a file. The binary data of this file will be returned. |
|---|
Binary
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
./myimage.png
/opt/var/images/myimage.png
http://myserver.com/images/myimage.png
The supported picture formats are:
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.