Skip to content

Instantly share code, notes, and snippets.

@axeda
Last active December 23, 2015 00:09
Show Gist options
  • Save axeda/6551681 to your computer and use it in GitHub Desktop.
Save axeda/6551681 to your computer and use it in GitHub Desktop.
Simple DownloadFile
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