4D v18

file.getContent( )

Home

 
4D v18
file.getContent( )

file.getContent( )  


 

The file.getContent( ) method returns a BLOB containing the entire content of the file. For information on BLOBs, please refer to the BLOB Commands section. 

 

Returned value

The file.getContent( ) method returns a BLOB. 

Example  

To save a document contents in a BLOB field:

 C_TEXT($vPath)
 $vPath:=Select document("";"*";"Select a document";0)
 If(OK=1) //If a document has been chosen
    [aTable]aBlobField:=File($vPath;fk platform path).getContent()
 End if



See also 

file.setContent( )

 
PROPERTIES 

Product: 4D
Theme: File and Folder

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

 
ARTICLE USAGE

4D Language Reference ( 4D v18)