the same work can be done by follow code:
header(\'Content-Type:image/jpeg\'); readfile(\'a.jpg\');
but now I really confused by Yii2\'s
The Yii2 way:
Yii::$app->response->setDownloadHeaders($filename);