@RestController public class ImageResource extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.activiti.repository.common.ImageUploadRepository |
imageUploadRepository |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
| Constructor and Description |
|---|
ImageResource() |
| Modifier and Type | Method and Description |
|---|---|
com.activiti.model.common.ImageUploadRepresentation |
createImage(org.springframework.web.multipart.MultipartFile file) |
String |
createImageText(org.springframework.web.multipart.MultipartFile file) |
void |
getImage(Long imageId,
javax.servlet.http.HttpServletResponse response) |
@Inject protected com.activiti.repository.common.ImageUploadRepository imageUploadRepository
@Inject protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
@RequestMapping(value="/rest/image/{imageId}",
method=GET)
public void getImage(@PathVariable
Long imageId,
javax.servlet.http.HttpServletResponse response)
@RequestMapping(value="/rest/images",
method=POST,
produces="application/json")
public com.activiti.model.common.ImageUploadRepresentation createImage(@RequestParam(value="file")
org.springframework.web.multipart.MultipartFile file)
@RequestMapping(value="/rest/images/text",
method=POST)
public String createImageText(@RequestParam(value="file")
org.springframework.web.multipart.MultipartFile file)
Copyright © 2014–2015 Alfresco. All rights reserved.