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

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

Saving base64 file in folder #5565

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

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants