Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving base64 file in folder #5565

Closed
asithamadhushanka12 opened this issue May 24, 2022 · 0 comments
Closed

Saving base64 file in folder #5565

asithamadhushanka12 opened this issue May 24, 2022 · 0 comments
Labels
IceBox Older issues that are not being actively worked on but may be revisited in the future. Version/6.6.0

Comments

@asithamadhushanka12
Copy link

Description:
When saving base64 converted image into the local server using file connector write operation it saves the image as a corrupted one.

Affected Product Version:
EI 6.6.0

Steps to reproduce:
<property name="base64File" scope="default" type="STRING" value="iVBORw0KGgoAAAANSUhEUgAAAAgAAAAIAQMAAAD+wSzIAAAABlBMVEX///+/v7+jQ3Y5AAAADklEQVQI12P4AIX8EAgALgAD/aNpbtEAAAAASUVORK5CYII"/> <property name="OUT_ONLY" scope="default" type="STRING" value="true"/> <property expression="base64Decode(get-property('base64File'))" name="DecodeBody" scope="default"/> <file.init> <name>SampleFile</name> <fileLockScheme>Local</fileLockScheme> <connectionType>LOCAL</connectionType> </file.init> <file.write> <filePath>/Users/abcd/decoded.png</filePath> <contentOrExpression>{$ctx:DecodeBody}</contentOrExpression> <mimeType>image/png</mimeType> <compress>false</compress> <writeMode>Create New</writeMode> <enableStreaming>false</enableStreaming> <appendNewLine>false</appendNewLine> <enableLock>true</enableLock> <includeResultTo>Message Body</includeResultTo> <updateLastModified>true</updateLastModified> </file.write>

@anupama-pathirage anupama-pathirage added the IceBox Older issues that are not being actively worked on but may be revisited in the future. label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IceBox Older issues that are not being actively worked on but may be revisited in the future. Version/6.6.0
Projects
None yet
Development

No branches or pull requests

3 participants