C8yBinariesService
public class C8yBinariesService : JcConnectionRequest<C8yCumulocityConnection>
Allows binary attachments to be uploaded/downloaded to c8y for C8yManagedObject
Refer to the c8y API documentation for more information
-
Fetch file contents using Cumulocity internal id of the file
Declaration
Swift
public func get(_ id: String) -> AnyPublisher<JcMultiPartRequestResponse, APIError>
-
Sends the file to Cumulocity to be stored
Declaration
Swift
public func post(name: String, contentType: String, content: Data) -> AnyPublisher<JcMultiPartRequestResponse, APIError>