function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kulkarniykkulkarniyk 

Pass uploaded file in visualforce page to .Net web service

Hi,

I want to get the file uploaded in visualforce page and pass this uploaded file to .Net web service for further processing outside saleforce. How can I collect the file in the VF page as byte array and pass it to external web service or else need to look at other options?

 

Thanks,

Yogesh

_Prasu__Prasu_

You can use a fileupload control and bind it with Attachment object in controller. Attachment.body should give you the content of the uploaded attachment. Also Callout has limit on size of request and response sent and recieved, So you may not be able to upload a large file.