1. Ivan Leon
  2. PowerBuilder
  3. Monday, 19 June 2023 12:34 PM UTC

Hi, How can I call an API to send a file? Body contains form-data. Could you help me? Thanks.

Ivan Leon Accepted Answer Pending Moderation
  1. Monday, 24 June 2024 13:12 PM UTC
  2. PowerBuilder
  3. # 1
Thank you, I finally succeeded in making the api call.
Comment
  1. David Peace (Powersoft)
  2. Wednesday, 26 June 2024 16:08 PM UTC
Please accept an answer or post how you solved the problem.
  1. Helpful
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Tuesday, 20 June 2023 02:30 AM UTC
  2. PowerBuilder
  3. # 2

Hi, Ivan -

Your question is extremely generic and in lacking in details. If Daryl’s answer is not sufficient, I suggest you provide additional information.

For example, are you referring to a particular (published) web API, or distribution via FTP? To a single destination or multiple? What kind of content that contains form data? The more specific the question, the easier you make it for someone in the Community to answer.

Best regards, John

Comment
There are no comments made yet.
Daryl Foster Accepted Answer Pending Moderation
  1. Tuesday, 20 June 2023 00:27 AM UTC
  2. PowerBuilder
  3. # 3

Hi Ivan,

If you are talking about sending a file from Powerbuilder to an API here are a couple of old links which show how to do multipart form uploads using HttpClient. You'll need to read through the threads to look for the relevant code.

https://community.appeon.com/index.php/qna/q-a/snap-develop-api-file-upload-download?limitstart=0

https://community.appeon.com/index.php/qna/q-a/problem-passing-xml-to-web-api-using-httpclient?limitstart=0

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.