Upload a email attachment file into a bucket with file byte stream

Hi everyone,
i’m trying to solve this scenario:
I’ve an Email message (POP3 server) with an attachment file stored in the MailMessage attachment list.
I want to upload this attachment file into a bucket without save the file before in a path of file system. I want to change only the name of the file before to upload in the bucket.

I’m not able to find the solution to this scenario, someone of us can suggest some possible solution?

Thanks in advance,
regards,
Fabio