4D v18

fichier.getContent( )

Accueil

 
4D v18
fichier.getContent( )

fichier.getContent( )  


 

La méthode file.getContent( ) retourne un BLOB comprenant le contenu intégral du fichier. Pour plus d'informations sur les BLOB, veuillez vous reporter à la section Commandes du thème BLOB

 

Valeur retournée

La méthode file.getContent( ) retourne un BLOB. 

Exemple  

Pour sauvegarder le contenu d'un document contents dans un champ BLOB :

 C_TEXT($vPath)
 $vPath:=Select document("";"*";"Selectionnez un document";0)
 If(OK=1) //Si un document a été sélectionné
    [laTable]unChampBlob:=File($vPath;fk platform path).getContent()
 End if



Voir aussi  

fichier.setContent( )

 
PROPRIÉTÉS 

Produit : 4D
Thème : Fichier et dossier

Commande(s) éligible(s) à l'exécution dans un process préemptif

 
PAGE CONTENTS 
 
HISTORIQUE 

 
UTILISATION DE L'ARTICLE

4D - Langage ( 4D v18)