Skip to content

addImage base64 support? #921

Closed
Closed
@koosvanderkolk

Description

@koosvanderkolk

In my code I have the image as a base64 encoded string. Of course I can write it to a temp file and then add it to my Word-file with addImage, but wouldnt it be more efficient if I could immediately feed addImage with my string?

I did not really dive into the code, but the existence of the getImageStringData function seems to suggest that base64 encoding is already been used internally (http://phpoffice.github.io/PHPWord/docs/master/classes/PhpOffice.PhpWord.Element.Image.html).


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

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