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

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

Send binary file through web service

Hello, I'm new to TOS but I'm trying to learn. Due to some guidelines I need to submit a file through a web service, but this web service I think only works with binary files. The file is sent as a parameter. So far I have been using the component tSoap to send the request to the WS, and it has worked, but now since I have to send a file I'm stuck. How can I convert (for example a PDF or JPEG) file to a binary file, and the send it as a parameter in a WS. Any help will be greatly appreciated. Please, remember that I am new at this, so if you can explain to me in detail I'll appreciate it. I'm using TOS 6.0.1 for Data Integration.

Thank you!

Labels (2)
1 Reply
Anonymous
Not applicable
Author

Hi 
What's data type of parameter defined in WS? Object or others? If Object, use tFileInputRaw to read the file as a bytes array, and then pass this object as input parameter to WS.