file or image migrate from drupal 6 to drupal 7 using Migrate D2D module?
In your migrate register function define the files table migration.

/**
 * Migrate files table
 */
// The description and the migration machine name are also required arguments,
// which will be unique for each migration you register.
$file_arguments = $common_arguments + array(
  'description' =&gt; t('Migration of files from Drupal 6'),
  'machine_name' =&gt; 'Files',
  'source_dir' =&gt; '/var/www/drupal6/files/xxxx/',
);

// We just use the migrate_d2d D6 migration class as-is.
Migration::registerMigration('DrupalFile6Migration', $file_arguments['machine_name'],
$file_arguments);


Then in your node migration class set the files migration as the source.

// Map the image field to the new image field, base this on the Files migration
// to map the files to the imported files table.
$this-&gt;addFieldMapping('field_image', 'field_image')
  -&gt;sourceMigration('Files');
$this-&gt;addFieldMapping('field_image:file_class')
  -&gt;defaultValue('MigrateFileFid');


Hope that helps