Decode an image in base 64 to a file, using feeds, feeds tamper and jsonpath

drupal.stackexchange https://drupal.stackexchange.com/questions/259956

  •  20-01-2021
  •  | 
  •  

Pregunta

I have a problem importing a 64 base image through the feeds module. I am consuming a service through jsonpath.

I am using the tamper feeds module to try to decode the image and then save it as a file but I have not succeeded.

I get the data well in the attribute mapping between the service and the content type, but I can not get the feed tamper to decode it and save it as an image in the content type.

Is this possible to do?

¿Fue útil?

Solución

Feeds Base64 images module

I have developed a module for this which adds two additional targets for file and image fields:

  • Filename
  • Base64

The 'Filename' target always needs to be mapped first.

I created this module years ago, but I never published it on drupal.org... until today!

https://www.drupal.org/sandbox/megachriz/2961717

Licenciado bajo: CC-BY-SA con atribución
No afiliado a drupal.stackexchange
scroll top