Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Connecting base64 string value to body of API using tRestclient or tRest

Hi all,

 

I am very new to Talend. I am stuck with completing the Talend job. My problem is when we pass a Base64 string value to an API which component is suitable. Is it tRest or tRestclient? And i need to put that string value to the body of API. I used post method and tried once. Then an error came as "414 URI too long". if someone can help me to find a solution for this, it would be great.

 

Thanks,

Thirunika

Labels (3)
4 Replies
fdenis
Master
Master

first thing check what is the string who generate this error.
add tlog in your job to catch it. then check if you are in get or post or ….
it may solve your problem. URL have max length.
Anonymous
Not applicable
Author

Thanks fdenis for your response. I have checked the base64 string using "Postman". There's no error with the string value. I need to know how to connect that value to tRESTClient component's body. I am  using POST method. What needs to be fill in the basic settings?

 

Thanks & Regards,

SThirunika

fdenis
Master
Master

I need more details, can you share some pics of your job and of components configuration?
Anonymous
Not applicable
Author

0683p000009M7gy.png

 

 

 

This is the job I created to get the string value. I have used tFileProperties to get the other values for my validations. Currently I have deactivated the tRESTClient. Below image shows the values i  am taking from  tFileProperties.

 

 

0683p000009M7hW.png

 

 

 

 

 

 

 

And the below image is a part of the Base64 string value. That string value is connected to a context variable.

 

0683p000009M7hI.png

 

Below picture shows the java code, which was used to get the string value.

 

0683p000009M7gZ.png