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

      • upload

        public de.digitalcollections.model.identifiable.resource.FileResource upload​(InputStream inputStream,
                                                                                     String filename,
                                                                                     String contentType)
                                                                              throws de.digitalcollections.model.exception.TechnicalException
        Throws:
        de.digitalcollections.model.exception.TechnicalException
      • upload

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