Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

vRO & Downloading via REST

$
0
0

Hi all,

 

I'm attempting to download an ISO via REST API. I'm currently trying to save the file locally within the vRA appliance to the vRO temp directory (/var/lib/vco/app-server/temp), where I can then upload it to a datastore, mount it to a VM, etc.

 

I have the rest of it working, but the actual saving the ISO isn't working quite correctly. I've tried using the FileWriter.write and File.write methods to take the REST response content as string and write it to a file. It works, but the file size of the ISO that gets saved off doesn't match the file size of the ISO when manually downloaded, so something isn't converting quite correctly.

 

I've started looking at the MimeAttachment object now to see if that will get me where I'm trying to go, but I'm not sure if that's the best route either. Is there an easier or better way to accomplish what I'm trying to do? Any assistance would be greatly appreciated.

 

Thanks!


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>