Uses of Record Class
io.meeds.mcp.server.tool.util.UploadToolUtils.FetchedContent
Packages that use UploadToolUtils.FetchedContent
-
Uses of UploadToolUtils.FetchedContent in io.meeds.mcp.server.tool.util
Methods in io.meeds.mcp.server.tool.util that return UploadToolUtils.FetchedContentModifier and TypeMethodDescriptionUploadToolUtils.fetchImage(String url, long maxBytes) Downloads an image over http(s) through the platform's guarded fetcher.Downloads any file (not restricted to images) over http(s) through the platform's guarded fetcher.UploadToolUtils.resolveImage(org.exoplatform.social.attachment.AttachmentService attachmentService, org.exoplatform.commons.file.services.FileService fileService, org.exoplatform.services.security.Identity aclIdentity, UploadToolUtils.ImageSource source, long maxBytes) Deprecated.UploadToolUtils.resolveImage(org.exoplatform.social.attachment.AttachmentService attachmentService, org.exoplatform.commons.file.services.FileService fileService, org.exoplatform.upload.UploadService uploadService, org.exoplatform.services.security.Identity aclIdentity, UploadToolUtils.ImageSource source, long maxBytes) Resolves an image from exactly one of four mutually exclusive sources into its raw bytes: an http(s) URL, a base64 string, an ACL-checked reference to a file already attached to a platform object (attachment_object_type+attachment_object_id), or the upload id of a file the user sent through an upload link (upload_id).
UploadToolUtils.resolveImage(AttachmentService, FileService, UploadService, Identity, ImageSource, long), which also takes an upload id and bounds and checks an attachment like the other sources; since 7.3.0, not for removal while an add-on reads a non-image attachment through this one