Package io.meeds.mcp.server.tool.util
package io.meeds.mcp.server.tool.util
-
ClassDescriptionHelpers to turn an image (from a URL or base64) into a platform
UploadServiceuploadIdthat any upload-consuming API (activity/comment attachments, note featured image, avatars, documents…) accepts.A downloaded image: its bytes, resolved mime type and a file name.The three mutually-exclusive ways to provide an image toUploadToolUtils.resolveImage(org.exoplatform.social.attachment.AttachmentService, org.exoplatform.commons.file.services.FileService, org.exoplatform.services.security.Identity, io.meeds.mcp.server.tool.util.UploadToolUtils.ImageSource, long): a public http(s) URL, base64-encoded bytes, or a reference to an existing platform attachment (attachmentObjectType+attachmentObjectId).