by Jitendra Gaur.
Hi Abdul,
Use this code to show the image in img tag
$fullpath = "{$CFG->wwwroot}/pluginfile.php/{$file->get_contextid()}/local_yourpluginname/content/{$file->get_itemid()}/{$file->get_filename()}";
$url = "{$CFG->wwwroot}/pluginfile.php/{$file->get_contextid()}/local_yourpluginname/content/";
$filename = $file->get_filename();
$path = $url.$file->get_filepath().$file->get_itemid().'/'.$filename;
echo html_writer::tag('img','',array('src'=>$fullpath));