Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Is it possible for me to use Talend Runtime container as a way to host "static" content like images/ html/ pdf?
Here is a very basic example that will allow you to do this. The layout of the job is shown in the screenshot below.
The configuration of the tFileInputRaw is below....
The tConvertType component converts the output from the tFileInputRaw from Object to byte[].
The tRestResponse is configured as below...
On the Advanced Settings tab you need to set some Response Headers.....
When you run the service and call it through a browser, it will return your file.
How do you mean "host"? Do you want them to be available via the Runtime in the same way they would be via a Web Server?
Here is a very basic example that will allow you to do this. The layout of the job is shown in the screenshot below.
The configuration of the tFileInputRaw is below....
The tConvertType component converts the output from the tFileInputRaw from Object to byte[].
The tRestResponse is configured as below...
On the Advanced Settings tab you need to set some Response Headers.....
When you run the service and call it through a browser, it will return your file.