Hi Miyako (or anyone please), I am looking at the cool Image Grid Widget you created years back. It was setup to handle and display png images.
I have upgraded it to 4D v15 and I am trying to use it to display a list of svg images. The code to read a PNG and display in a web page is: PICTURE TO BLOB($picture;$data;".png") BASE64 ENCODE($data) $dataURI:="data:image/png;base64,"+Convert to text($data;"utf-8") $dataURI:=Replace string(Replace string($dataURI;"\r";"";*);"\n";"";*) I’ve replaced “png" references with “svg". PICTURE TO BLOB($picture;$data;".svg") // png BASE64 ENCODE($data) $dataURI:="data:image/svg;base64,"+Convert to text($data;"utf-8") // data:image/png;base64 $dataURI:=Replace string(Replace string($dataURI;"\r";"";*);"\n";"";*) I have partial success in that some svg images display in the grid and others don’t. BUT all of them show up as small "question mark picture frames” as each image in the web page. I am missing something and not quite sure what? Thanks for your help, John… ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

