Hi all,
I use REST API to create pages in my Confluence server. It works fine for simple text, but if HTML text posted to the server contains base64 image, the POST operation finished well, but created page doesn't contain the image code. It is simply cut. Of course, created page doesn't show the image.
In the source it is like that:
<img src="data:image/png;base64,iVBORw0KGg (many symbols here)=" />
Please, help.
Yeah, that's not going to work.
It's a nice idea and I'd like it to work, but images need to be separate to content. Maybe upload as an attachment, then add the image to point to the attachment.
Yes, I did it. Now I have 3-steps page creation: 1) create a simple page just in order to know its ID; 2) upload images as attachments with already known page ID; 3) update page with its full content and references to attachments.
It isn't very nice and I would like to create a page with images in just one step, but I don't have another solution.
Anyway I have this workaround, it is better than nothing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey, was this approach using base 64 images?
I'm trying to get that done but the only solution I can see is to parse it to an actual image and then upload it as an attachment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.