Add base64 encoded image dumping function #6321

Closed
opened 2026-02-21 18:15:12 -05:00 by yindo · 4 comments
Owner

Originally created by @guoshiqiufeng on GitHub (Oct 24, 2024).

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

I request a third-party service through the Http request component, which returns a base64-encoded image, and then I need to continue to manipulate this image, so I'd like to add base64-encoded image dumping functionality.

2. Additional context or comments

image

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @guoshiqiufeng on GitHub (Oct 24, 2024). ### Self Checks - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. I request a third-party service through the Http request component, which returns a base64-encoded image, and then I need to continue to manipulate this image, so I'd like to add base64-encoded image dumping functionality. ### 2. Additional context or comments ![image](https://github.com/user-attachments/assets/d00f4615-54cb-4e01-a276-0923f512087d) ### 3. Can you help us with this feature? - [ ] I am interested in contributing to this feature.
yindo added the 💪 enhancement label 2026-02-21 18:15:12 -05:00
yindo closed this issue 2026-02-21 18:15:12 -05:00
Author
Owner

@alterxyz commented on GitHub (Oct 26, 2024):

Can you tell me a bit more about how you want to "continue to manipulate this image"?


You can use a code block to convert and upload it to somewhere if you really need.

Also, another choice you can format it a little bit, Dify markdown render should easily display it. Below is a sample one:

![Red and Blue](data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAwIDEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cmVjdCB4PSIxMCIgeT0iMTAiIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgZmlsbD0iI2ZmMDAwMCIvPgogIDxyZWN0IHg9IjExMCIgeT0iMTAiIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgZmlsbD0iIzAwMDBmZiIvPgo8L3N2Zz4=)

image

@alterxyz commented on GitHub (Oct 26, 2024): **Can you tell me a bit more about how you want to "continue to manipulate this image"?** --- You can use a code block to convert and upload it to somewhere if you really need. Also, another choice you can format it a little bit, Dify markdown render should easily display it. Below is a sample one: ```markdown ![Red and Blue](data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAwIDEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cmVjdCB4PSIxMCIgeT0iMTAiIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgZmlsbD0iI2ZmMDAwMCIvPgogIDxyZWN0IHg9IjExMCIgeT0iMTAiIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgZmlsbD0iIzAwMDBmZiIvPgo8L3N2Zz4=) ``` ![image](https://github.com/user-attachments/assets/a17cfce7-fec1-4ab7-8ef7-5d2b5a89caf6)
Author
Owner

@guoshiqiufeng commented on GitHub (Oct 27, 2024):

I need to use the image returned by the request to call other interfaces, but because the interface to return the image base64 is too large, not good with the code to convert (there will be characters too long), so I want to save as a file, in the file to call other interfaces. Similar operations, there are several related interfaces currently in use, you can query the interface documentation:https://github.com/Zeyi-Lin/HivisionIDPhotos/blob/master/docs/api_EN.md

@guoshiqiufeng commented on GitHub (Oct 27, 2024): I need to use the image returned by the request to call other interfaces, but because the interface to return the image base64 is too large, not good with the code to convert (there will be characters too long), so I want to save as a file, in the file to call other interfaces. Similar operations, there are several related interfaces currently in use, you can query the interface documentation:https://github.com/Zeyi-Lin/HivisionIDPhotos/blob/master/docs/api_EN.md
Author
Owner

@guoshiqiufeng commented on GitHub (Oct 30, 2024):

It's been accomplished temporarily through other means.

@guoshiqiufeng commented on GitHub (Oct 30, 2024): It's been accomplished temporarily through other means.
Author
Owner

@wow-ww commented on GitHub (Dec 31, 2024):

It's been accomplished temporarily through other means.它暂时通过其他方式完成了。

Hey!the same question.Could u tell me how to do it?I get image base64 by http node.And I need send the image to LLM node .

@wow-ww commented on GitHub (Dec 31, 2024): > It's been accomplished temporarily through other means.它暂时通过其他方式完成了。 Hey!the same question.Could u tell me how to do it?I get image base64 by http node.And I need send the image to LLM node .
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6321