尝试将最大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服务
发布评论