Skip to main content
Question

How to write byte[] in json to PNG image

  • February 15, 2018
  • 2 replies
  • 157 views

A JSON file stored PNG images in byte[] text format. How do I convert them into PNG?

2 replies

lottegis
Forum|alt.badge.img+1
  • February 15, 2018

I'm guessing the byte data type is base64. If that's the case, try...

  1. BinaryDecoder: Encoding Type=Base64
  2. RasterExtractor: Format=PNG

I think this article is related, that you can go in reverse: https://knowledge.safe.com/articles/1176/embedding-images-in-html-with-fme.html


jochgem
Contributor
Forum|alt.badge.img+4
  • Contributor
  • July 11, 2018

A small correction: the RasterExtractor needs to be the RasterReplacer. The two steps explained are correct.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings