Difference between revisions of "BASE64 ENCODE FILE()"

From Lianjapedia
Jump to: navigation, search
(Yvonne.milne moved page BASE64 ENCODE FILE() to BASE64 ENCODE IMAGE())
 
Line 1: Line 1:
#REDIRECT [[BASE64 ENCODE IMAGE()]]
+
==Purpose==
 +
Function to generate the base64 encoded contents of a file and output it into the HTML5
 +
 
 +
==Syntax==
 +
BASE64_ENCODE_FILE(<cFilename> [, <cType> [, <cWidth> [, <cHeight> [, <cCSSattribute>]]]])
 +
 
 +
==See Also==
 +
[[BASE64_DECODE()]], [[BASE64_ENCODE()]], [[BASE64_ENCODE_IMAGE()]]
 +
 
 +
==Description==
 +
The BASE64_ENCODE_FILE() function is used to generate the base64 encoded contents of the file <cFilename> and output it into a WebView or the HTML5 sent to a browser.  The optional <cType> can be used to specify the file type.  If <cType> is an image type, the output will be enclosed in an IMG tag and the <cWidth> and <cHeight> can be used to specify the image dimensions and <cCSSattribute> to add additional CSS attributes.
 +
 
 +
 
 +
==Example==
 +
 
 +
 
 +
[[Category:Documentation]]
 +
[[Category:Functions]]
 +
[[Category:Lianja VFP Extensions]]
 +
[[Category:VFP Function Extensions]]

Revision as of 08:54, 12 December 2013

Purpose

Function to generate the base64 encoded contents of a file and output it into the HTML5

Syntax

BASE64_ENCODE_FILE(<cFilename> [, <cType> [, <cWidth> [, <cHeight> [, <cCSSattribute>]]]])

See Also

BASE64_DECODE(), BASE64_ENCODE(), BASE64_ENCODE_IMAGE()

Description

The BASE64_ENCODE_FILE() function is used to generate the base64 encoded contents of the file <cFilename> and output it into a WebView or the HTML5 sent to a browser. The optional <cType> can be used to specify the file type. If <cType> is an image type, the output will be enclosed in an IMG tag and the <cWidth> and <cHeight> can be used to specify the image dimensions and <cCSSattribute> to add additional CSS attributes.


Example