cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Upload file to (REST) Web Service from ThingWorx.

Highlighted
Newbie

Upload file to (REST) Web Service from ThingWorx.

I want to upload a file to Web Server hosting Upload web service from ThingWorx, i came across service getXml but i cant use it for uploading. Is there any service available which i can use it to upload file on Web Service hosted on Tomcat Server ?

3 REPLIES 3
Highlighted

Re: Upload file to (REST) Web Service from ThingWorx.

Try PostXML? Not sure if that server accepts a post of a file

Highlighted

Re: Upload file to (REST) Web Service from ThingWorx.

Create a FileRepository Thing and use the SaveBinary service. You will need to pass the content in a format compatible with Blob, like encoding in base64.

Highlighted

Re: Upload file to (REST) Web Service from ThingWorx.

Meghan,

I have crated the FileRepository Thing and identified the SaveBinary service.

Do you have an example of the RESTFul URL that accomplishes this? What is its method?  How to append the binary content?

Assuming something starting with: https://myplatform.thingworx.com/Thingworx/Things/myRepositoryThing/Services/SaveBinary....and now some parms...

Any suggestions?


Thanks,

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!