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
  •  | 
  •  

質問

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?

役に立ちましたか?

解決

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

ライセンス: CC-BY-SA帰属
所属していません drupal.stackexchange
scroll top