Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

BLOB file as attachment to REST api without base64 conversion

Tyagi TusharAug 21 2020 — edited Aug 23 2020

Hello all,

I am sending some attachments to JIRA using JIRA rest api and UTL_HTTP from APEX by converting my blob content to base 64 format and passing it to JIRA api.

Now, JIRA doesnot accept base64 format and ignores the content-encoding attribute from the header and files are corrupted.

So, when i send a text file without converting to base 64 format, it is uploaded fine on JIRA end, but when i send any other file, like pdf, jpeg etc, the file gets corrupted when it reaches JIRA.

Is it possible to send blob content from APEX without converting it to base64 format, because JIRA only accepts binary.

This post has been answered by Tyagi Tushar on Aug 23 2020
Jump to Answer
Comments
Post Details
Added on Aug 21 2020
2 comments
1,257 views