Reading binary data with atlassian connect express

I’m trying to retrieve binary files from bitbucket, using an Atlassian Connect Express application. I’d rather keep with the standard Atlassian recommended flow, but for whatever reason httpClient.get doesn’t seem to cope well with binary, and despite the documentation stating, that it’s just a modification of the standard request library, .pipe() isn’t supported.

Any ideas/tricks for using Atlassian middleware to download a file?

1 Like