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://*/

LMGTFY

1 Like

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

1 Like

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

2 Likes