Skip to content
Discussion options

You must be logged in to vote

Yes, your understanding is correct! The Code Execution node in Dify cannot output files array[file] types - it's limited to String, Number, Array, and Object types. So you need a plugin to convert the processed data back to a file format.

Regarding the plugins you found:

The Base64 Codec plugin (bowenliang123/base64_codec) is a good option - it can decode base64 strings and output image files (PNG, JPG, WEBP, SVG) that the Output node can display. Here's the recommended workflow:

  1. Code Execution Node: Process your image (resize, grayscale) and output the result as a base64 string
  2. Base64 Codec Plugin: Use the decode function to convert the base64 string back to an image file
  3. Output Node: …

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@hhhFuture
Comment options

@dosubot
Comment options

@hhhFuture
Comment options

@dosubot
Comment options

Answer selected by hhhFuture
Comment options

You must be logged in to vote
2 replies
@hhhFuture
Comment options

@SpiderJack0516
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants