How to download TwoDThumbnailURL image file into File Repository
Hi,
I am working on a Thingworx extension that creates an excel file by passing an infotable parameter. The infotable contains strings and TwoDThumbnailURL.URL obtained from `Things["intralox-windchill-odata-connector-illustrated-parts"].GetPartRepresentations`.
So far the TWX extension successfully creates the excel file with string parameters, the challenge is rendering TwoDThumbnailURL images.
I have proven that the downloaded jgp file from TwoDThumbnailURL.URL can be embedded in an excel spreadsheet by doing the following steps:
- Edit TwoDThumbnailURL.URL value by removing the "oauth/" portion
- Copy modified TwoDThumbnailURL.URL into the browser
- A jpg file is downloaded into local Download directory.
- Upload this jpg file to a File Repository.
- Now that the image file is available in the File Repository the TWX extension code can obtain the image file and add it in the excel file.
Is there a programmatic way to do steps 2-4 described above that would download the TwoDThumbnailURL to obtain the jpg file and add it to a File Repository?
TIA!

