Retaining File name attached while getting details from mail

Certified Associate Developer

Hi Folks.

I want to retain the same file name while fetching details from integration.

Please note contentBytes stores the document fetched.

But I'm getting below error:

Request your suggestion on how can I achieve this in keeping the same file name as passed.

  Discussion posts and replies are publicly visible