0

I try to import RTF in SharePoint ListItem, like this enter image description here

My History field contain some HTML, that I can open in a navigator without problems:

<br><font size=4 face="Verdana"><b>Rich Text Test Alternate Form</b></font>
<br>
<br><font size=2 face="Verdana"><b>Title:</b> &nbsp; &nbsp; &nbsp; &nbsp;This
is a title field</font>
<br>
<hr>
<br><font size=2 face="Verdana"><b>Rich Text:</b></font>
<br><font size=2 face="Verdana">and this is </font><font size=3 face="Verdana"><u>rich</u></font><font size=2 face="Verdana">
</font><font size=2 color=red face="Verdana"><b><i>text</i></b></font>
<br>
<br><img alt="big picture" src="data:image/png;base64,R0lGODlhoAFNAecAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwMDcwKbK8EAgAGAgAIAgAKAgAMAgAOAgAABAACBAAEBAAGBAAIBAAKBAAMBAAOBAAABgACBgAEBgAGBgAIBgAKBgAMBgAOBgAACAACCAAECAAGCAAICAAKCAAMCAAOCAAACgACCgAECgAGCgAICgAKCgAMCgAOCgAADAACDAAEDAAGDAAIDAAKDAAMDAAODAAADgACDgAEDgAGDgAIDgAKDgAMDgAODgAAAAQCAAQEAAQGAAQIAAQKAAQMAAQOAAQAAgQCAgQEAgQGAgQIAgQKAgQMAgQOAgQABAQCBAQEBAQGBAQIBAQKBAQMBAQOBAQABgQCBgQEBgQGBgQIBgQKBgQMBgQOBgQACAQCCAQECAQGCAQICAQKCAQMCAQOCAQACgQCCgQECgQGCgQICgQKCgQMCgQOCgQADAQCDAQEDAQGDAQIDAQKDAQMDAQODAQADgQCDgQEDgQGDgQIDgQKDgQMDgQODgQAAAgCAAgEAAgGAAgIAAgKAAgMAAgOAAgAAggCAggEAggGAggIAggKAggMAggOAggABAgCBAgEBAgGBAgIBAgKBAgMBAgOBAgABggCBggEBggGBggIBggKBggMBggOBggACAgCCAgECAgGCAgICAgKCAgMCAgOCAgACggCCggECggGCggICggKCggMCggOCggADAgCDAgEDAgGDAgIDAgKDAgMDAgODAgADggCDggEDggGDggIDggKDggMDggODggAAAwCAAwEAAwGA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AHS9jCGvawiE2sYhfL2MY69rGQjaxkJ0vZylr2spjNrGY3y9nOevazoA2taEdL2tKa9rSoTa1qV1vagAAAOw==" style="border:0px solid;">
<br><tt><font size=2>thanks for playing</font></tt>
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4
  //8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red dot" />
<br>
<br>

However all the src="data:image/png;base64 is trimmed during the import (I import via ShareGate).

My SharePoint field is configured like this:

enter image description here

So, I get all the HTML, but without pictures:

enter image description here

the resulting HTML is like enter image description here

Is there a way to add/keep encoded base64 pictures in SharePoint HTML fields?

3
  • Can you confirm that the column supports base64 images? Commented Aug 23, 2022 at 14:49
  • @CallumCrowley updated the OP, sorry for french :)
    – serge
    Commented Aug 23, 2022 at 14:55
  • Can you test adding the content to the column via the SharePoint UI? To ensure it's not SharePoint removing the base64 images from your HTML? Commented Aug 23, 2022 at 15:29

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.