I am using AIS call through java.I have set the login environment correctly and I am able to call MediaObjectOperations.getMediaObjectList successfully. But when I try to make MediaObjectDownloadRequest and calls MediaObjectOperations.downloadMediaObject(loginEnvironment,MediaObjectDownloadRequest,FilePath) it is throwing an runtime exception.
Please share sample code for it . Also let me know if it requires any special setup or permission. I have also added outputType capability.