How to Display image from DB from a different table in ActiveForm

I have a db-table “user” where the personal handwritten signature of the user is saved in an index named “signature” as a *.png file.
I have a form where I put in information for a report. The dbtable for it is report-data. When the user who is logged in is finished with the report he should be able to trigger (e.g. button) an action with which his own sign is put into the report as an image (and only the sign of the logged in user at that time of triggering).

So far I was able to get the info for the image out of the db with this

<?php $_picture_user = Yii::$app->user->identity->signature; ?>

I am using Active Form to gather the needed information for the report.
I need help to figure out how I can add said image in a form like this:

<?= $form->field($model, 'pruefint_signatur') ?>

Any help is greatly appreciated.

Hi @keem,

I don’t understand why you are trying to add the signature as a form element? Shouldn’t you be only displaying it? <img src="<?= Yii::$app->user->identity->signature ?>" />

Hi @machour,
Normally yes, when I just want to display it, that would work.
I need an empty field, where the signature.png of the logged in user is supposed to appear after said user pushes a button or something to trigger that action.
After the report is done I want to export a PDF of the whole form and thats another reason why i would like to make it in said form.
best regards