This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v19.8
file.getContent( )

file.getContent( ) 


 

file.getContent () -> Result 
Parameter Type   Description
Result  BLOB in File content

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 

Created: 4D v17 R5

 
ARTICLE USAGE

4D Language Reference ( 4D v19)
4D Language Reference ( 4D v19.1)
4D Language Reference ( 4D v19.4)
4D Language Reference ( 4D v19.5)
4D Language Reference ( 4D v19.6)
4D Language Reference ( 4D v19.7)
4D Language Reference ( 4D v19.8)