Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello. I'm trying to upload a .jpeg image file to a 3rd party API.
Postman works successfully as the images show below:
However, I'd like to do this in Talend.
I've tried using thttpclient and trestclient, encoding it as Base64, everything I can think of... Most responses are similar to 415 - Media type not supported.
Could anyone advise on how best to do this or suggest something different? My testing looks like this at the moment:
Many thanks.
Hello @mscarrick1
I've done this kind of thing with tRest and with tFileFetch it works too.
Best Regards
Thanks.
I'd read this might be possible but as they are both now deprecated in favour of thttpclient I no longer have that option.
Hello @mscarrick1
Ah, they deprecated these components in v8.
Okay, I think with tHttpClient, we should do something like the following, replacing tRest with tHttpClient.
Best Regards
hello @mscarrick1
i have the same issue
do you have any update ?
I did succeed in the end. I can post screen shots next week but from memory:
I didn't use the tfileinputraw or tconverttype. The thttpclient on is own is enough.
Don't use the "add attachments" option in advanced settings.
Instead, set the "request body" (i think that is correct??) In basic settings, set it to 'binary' and add the path to your file.