Hello all, i have svg icon from my backend represented as base64 string and i want to insert it into pinBuilder, there is a method pinBuilder.fromUrl(url: Resource | string, color: Color, size: number) to insert path to file but is there a way how to insert directly Base64 string (or encoded base64 = svg icon as HTMLElement) into PinBuilder? not relative path/Resource to icon as in pinBuilder.formUrl method?
Welcome to the community!
I just looked over our documentation and our sandcastle demos. There currently is no way to insert a Base64 string directly into PinBuilder. I am not aware of any workarounds - maybe the community has some suggestions?
-Sam
have a look at the dataUri api, it might do what you want: