Steave I know about inputting tag .I believe you dot know about the limitation of it it only accept 100kb .I ready some thing about fileupload feature it will give upload upto 10MB am searching for that?
Thanks for the solution but it is not accepted one.
What is the filesize limitation.here is my example code .
Geting the Document from desktop in to salesforce.
<apex:outputLabel for="postFileId" value="1. Select File to upload :"/>
<apex:inputFile contentType="{!fileContentType}" id="postFileId" fileName="{!fileName}" fileSize="{!fileSize}" value="{!fileBlob}" required="true"/>
when using it 128kb limitation error.
Sending the Document using HttpClass:(multipart implementation)
String content = 'Content:\r\n--' + boundary + '\r\nContent-Disposition:form-data;name="' + p_fileName + '";filename="'+p_fileName+'"\r\n';
content +='Content-Type:' + p_fileContentType + ',charset=ISO-8859-1\r\n';
content +='Content-Transfer-Encoding:binary\r\n\r\n';
System.debug('content ' + content);
content += p_fileBlob.toString()+'\r\n';// here i am geting 100kb and 10 calls limitation
content += '--'+boundary+'--';
m_URL = p_URL + '&sessionid=' + session id;
Http m_http = new Http();
HttpRequest req = new HttpRequest();
req.setEndpoint(m_URL);
req.setHeader('Content-Type','multipart/form-data;boundary='+boundary);
req.setMethod('POST');
req.setBody(content);
So what is the solution for it sending data atleast 5mb via server side.we implmented it using s-control the limitation od sending data is hight but we want implement it in server side we have lot limitation ,waht is the solution for it,please can give some comment on it ,it is one of critical issue in our application.
The limitation is in HttpRequest. If you have the blob server side already, why are you trying to round trip it through a VF page. what's you actual end goal ?
You won't be able to do this by trying to push the data from apex code, you'll need to pull it from salesforce using the regular enterprise or partner APIs.
Steave I know about inputting tag .I believe you dot know about the limitation of it it only accept 100kb .I ready some thing about fileupload feature it will give upload upto 10MB am searching for that?
Thanks for the solution but it is not accepted one.
Ron ,
What is the filesize limitation.here is my example code .
Geting the Document from desktop in to salesforce. <apex:outputLabel for="postFileId" value="1. Select File to upload :"/> <apex:inputFile contentType="{!fileContentType}" id="postFileId" fileName="{!fileName}" fileSize="{!fileSize}" value="{!fileBlob}" required="true"/>
when using it 128kb limitation error. Sending the Document using HttpClass:(multipart implementation) String content = 'Content:\r\n--' + boundary + '\r\nContent-Disposition:form-data;name="' + p_fileName + '";filename="'+p_fileName+'"\r\n'; content +='Content-Type:' + p_fileContentType + ',charset=ISO-8859-1\r\n'; content +='Content-Transfer-Encoding:binary\r\n\r\n'; System.debug('content ' + content); content += p_fileBlob.toString()+'\r\n';// here i am geting 100kb and 10 calls limitation content += '--'+boundary+'--'; m_URL = p_URL + '&sessionid=' + session id; Http m_http = new Http(); HttpRequest req = new HttpRequest(); req.setEndpoint(m_URL); req.setHeader('Content-Type','multipart/form-data;boundary='+boundary); req.setMethod('POST'); req.setBody(content);
So what is the solution for it sending data atleast 5mb via server side.we implmented it using s-control the limitation od sending data is hight but we want implement it in server side we have lot limitation ,waht is the solution for it,please can give some comment on it ,it is one of critical issue in our application.
Thanks & Regards
Gopi
My end goal is i want send documents or data into a third party application past one month am working on it but because of this limitation am not get any break. atleast i want send 5mb data,can u tell where i did mistake.
Thanks & Regards
Gopi
Can explain about the enterprise and partner API .
How I can get permission to access these two APIs,Thanks for yours quick reply.