The first way gives an error saying Cannot read properties of undefined (reading ‘readBytesFromStream’) can you please let me know how this can be resolved?
@arun08,
Thank you for the code example. Could you please also share a code that calls the function fillImageBase64PlaceHolder and presentation file you used?
This is something which I want to implement, because I don’t want to store multiple images in my server which will cause overhead in storage and retrieval. Kindly do the needful. Even if you have a sample code (complete code) which can accommodate this will be good.
@arun08,
Thank you for your patience. Unfortunately, I was unable to reproduce the error you described. Could you please check the error using the latest version of Aspose.Slides for Node.js?
@andrey.potapov , but it does not have any import statement and the calling function etc. which can give me insights on what i am missing. Can you share the entire stuff ? Since i am unable to do it in my local ?
@andrey.potapov thanks for the help, I was able to add the image in the new presentation but it displayed only half of the real image also i have a template where i have an sample image i am trying to replace or add the base64 image in that place, is it possible to do ?
I have added the sample image file, the requirement is to add base64 image data into the slides “imageplaceholder” , have added the base64image data along with this folder.
Kindly let me know for more details
@arun08,
The dimensions of the image (base64 data) and the dimensions of the “imageplaceholder” are different. Could you please specify the expected result?