Hi @Florin_MANEA and welcome to the Community!
I believe that you cannot preview or view a JPEG attachment without downloading the file first and then opening it. There has been a long standing feature request for viewing attachments:
You can upvote the feature request if you like.