Decode Base64 image and send it to target as stream in apigee

Hi Team,
I have an requirement where consumer send image as base 64 but my target accepting it as  multipart/form data stream.
Apigee Sample request:
{
"filename": "test",
"imagebase64": "iVBORw0KGgoAAAANSUhEUgAAANgAAg9ITbiU/2OEnAAAAABJRU5ErkJggg=="
}
Target Sample request:
curl -i -X POST \
-H "Content-Type:multipart/form-data" \
-F "filename=69607" \
-F "gallery[0]=@\"./filename.png\";type=image/png;filename=\"filename.png\"" \
'https://***/**'

0 3 83
3 REPLIES 3

LMGTFY

 

Hi @dchiesa1 ,
Thanks for your reply, I am not able to use the JAR file. it corrupted JAR file.
Can you share me the working JAR file?
Jar file git location 

It's not corrupted. I just checked; the jar looks fine. You are download it incorrectly, I guess.