Last active
December 23, 2015 00:09
-
-
Save axeda/6551681 to your computer and use it in GitHub Desktop.
Simple DownloadFile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static com.axeda.sdk.v2.dsl.Bridges.* | |
import com.axeda.services.v2.* | |
import com.axeda.sdk.v2.exception.* | |
import com.axeda.drm.sdk.scripto.Request | |
def response = fileInfoBridge.getFileData(parameters.fileId) | |
def contentType = parameters.type ?: 'image/jpg' | |
return ['Content': response, 'Content-Disposition': contentType, 'Content-Type':contentType] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment