From Thursday, July, 9, 3:00 PM Pacific,
our Community site will be in
read-only mode
through Sunday, July 12th.
Thank you for your patience.

Send a file through webservice with multipart/form-data + metadata

Highlighted
One Star

Send a file through webservice with multipart/form-data + metadata

Hello,
I'm trying to send a file to webservice, that only accept POST requests with multipart/form-data content type, but I didn't manager to get an appropriate result. This webservice (a provided API) accept file in one of the parts, with additionals metadata (other business information).
I've tried :
- tRest, but it doesn't seem to support multipart/form-data, even if ContentType is filled
- tHttpRequest, but as far as I understand, I had to write all the body content in a file (not straight forward)
- tFetchFile, as per message (http://www.talendforge.org/forum/viewtopic.php?pid=70691), it should work, but I don't understand how
The only way I found is to code my own component, and even it seems to work, I'm still looking for a native solution.
Do someone have any working example ?
Highlighted
Moderator

Re: Send a file through webservice with multipart/form-data + metadata

Hi,
Have you viewed component reference TalendHelpCenter:tFileFetch with scenarios?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog