2
0

Base 64 images #22

This commit is contained in:
glax 2023-05-25 13:58:10 +02:00
parent 5efa00e059
commit a8dbece237

View File

@ -111,7 +111,7 @@ function CreatePublication(publication, connector){
var publicationElement = document.createElement('publication'); var publicationElement = document.createElement('publication');
publicationElement.setAttribute("id", publication.internalId); publicationElement.setAttribute("id", publication.internalId);
var img = document.createElement('img'); var img = document.createElement('img');
img.src = publication.posterUrl; img.src = `data:image;base,${publication.posterBase64}`;
publicationElement.appendChild(img); publicationElement.appendChild(img);
var info = document.createElement('publication-information'); var info = document.createElement('publication-information');
var connectorName = document.createElement('connector-name'); var connectorName = document.createElement('connector-name');