Skip to content

ErrorException: imap_savebody(): stream filter (convert.base64-decode): invalid byte sequence #229

Open
@Magnificent-Big-J

Description

@Magnificent-Big-J

I have the following code

$attachments = $message->getAttachments();

$attachmentPath = "storage path";

foreach ($attachments as $attachment) {
$attachment->saveToDirectory($attachmentPath);
}

Now and then when I call saveToDirectory method I get the following error
ErrorException: imap_savebody(): stream filter (convert.base64-decode): invalid byte sequence

I can't solve the problem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions