KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: How to import or export records with picture fields using a method
PRODUCT: 4D | VERSION: 6.5 | PLATFORM: Mac & Win
Published On: September 7, 2001

One way to do this is by using import/export project files.

This solution involves use of the IMPORT DATA and EXPORT DATA commands. To do this, you first need to manually create import/export project files for your database.

Please follow the instruction below:

- Launch the Import or the Export editor.
- Select all fields to be imported or exported.
- Under the Records setting, select Export Selection.
- Under the Format setting, select 4th Dimension.
- Click the Save Settings as a project file button (in this case, the name of the project file is "IEProject"). Make sure that the project file is saved in the same folder as the structure file.
- Click Cancel to close the Import/Export window.

Using the following 2 methods you can now run the import or export automatically:

`Method: Import
C_BLOB($bProject)
DOCUMENT TO BLOB("IEProject";$bProject) `Load Import/Export Setting
IMPORT DATA("FileName";$bProject)

`Method: Export
C_BLOB($bProject)
DOCUMENT TO BLOB("IEProject";$bProject) `Load Import/Export Setting
EXPORT DATA("FileName";$bProject)