Class CudamiFileResourcesBinaryClient


  • public class CudamiFileResourcesBinaryClient
    extends Object
    • Field Detail

      • mapper

        protected final com.fasterxml.jackson.databind.ObjectMapper mapper
      • serverUri

        protected final URI serverUri
    • Constructor Detail

      • CudamiFileResourcesBinaryClient

        public CudamiFileResourcesBinaryClient​(String serverUrl,
                                               com.fasterxml.jackson.databind.ObjectMapper mapper)
    • Method Detail

      • create

        public de.digitalcollections.model.api.identifiable.resource.FileResource create()
      • upload

        public de.digitalcollections.model.api.identifiable.resource.FileResource upload​(byte[] bytes,
                                                                                         String filename,
                                                                                         String contentType)
                                                                                  throws HttpException
        Throws:
        HttpException