从Salesforce将20 mb文件上传到3rd Party服务

编程入门 行业动态 更新时间:2024-10-23 04:49:33
本文介绍了从Salesforce将20 mb文件上传到3rd Party服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

尝试将最大20 MB的文件从Salesforce Visualforce页面上载到另一台服务器.但是,当我使用apex:inputFile选择文件时,它说文件限制为10 MB.有这个想法吗?

Trying to upload files upto 20 MB from Salesforce Visualforce page to another server. But when I select a file using apex:inputFile , it says file limit is 10 MB. Any idea about this ?

已经尝试使用瞬时变量

推荐答案

普通顶点代码的堆(内存)大小限制为6 MB.异步顶点(批处理作业,@ future方法)有12个,而自定义编码的入站电子邮件处理程序有36个.您将无法从服务器端代码中推送更多内容.如果文件是二进制文件,甚至更少,则在发送之前可能必须对其进行base64编码.

Normal apex code has 6 MB heap (memory) size limit. Asynchronous apex (batch jobs, @future methods) have 12 and custom-coded inbound email handlers have 36. You won't be able to push more than that from server-side code. Even less if the file is binary and you might have to base64-encode it before sending.

发送带有附件的电子邮件吗?从JavaScript发送而不是从顶点发送?或更改方向,使另一个系统登录到SF并检索文件(最大2 GB).要么让另一个系统每小时检查一次,要么向他们发送一些通知msg,通知他们有新文件要提取.也许甚至是平台活动?

Send email with attachments? Send from JavaScript instead of apex? Or change the direction, make the other system login to SF and retrieve files (up to 2 GB). Either make the other system check every hour or send them some notification msg that there are new files to pick up. Maybe even a Platform Event?

或者检查是否可以进行网络混搭,例如在iframe中显示该第三方应用程序的页面.

Or check if you can make a web mashup, display page from that 3rd party app in iframe for example.

help.salesforce/articleView?id = 000321537& language = zh_CN& type = 1& mode = 1

trailhead.salesforce/en/content/learn/projects/workshop-platform-events/platform-event-define

更多推荐

从Salesforce将20 mb文件上传到3rd Party服务

本文发布于:2023-11-26 17:52:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1634579.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件上传   Salesforce   Party   mb

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!