RTC Forums

Subscription => Support => Topic started by: kaju74 on November 05, 2010, 06:15:22 PM



Title: Send a file to another web-server
Post by: kaju74 on November 05, 2010, 06:15:22 PM
Hi...

I've a 3rdParty webserver which allows me to upload a file using this part of html:

Code:
    <form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
      <label>upload file
        <input type="file" name="file" id="file" />
      </label>
      <label>
        <input type="submit" name="button" id="button" value="Submit" />
      </label>
    </form>

Is there any way to use RTC and sending a file to that server automatically?

Thank you & regards,
Marc


Title: Re: Send a file to another web-server
Post by: D.Tkalcec (RTC) on November 05, 2010, 10:35:13 PM
There is no automatic mechanism built into the RTC SDK for uploading data to a 3rd-party web server using "multipart/form-data" encoding. You will need to construct the request content body manually and upload it to the webserver the same way you would send a file to a RTC Server. You can find an example on sending files to Servers in the RTC SDK QuickStart folder under "Client Upload".

Best Regards,
Danijel Tkalcec


Title: Re: Send a file to another web-server
Post by: kaju74 on November 11, 2010, 11:14:22 AM
Hi..

Thank you...I'll try that out.

Regards,
Marc