I am having a VF where the user will browse the file and in the apex, I am encoding that file and uploading it to sharepoint and storing the response in salesforce. I am not storing the file/request in salesforce.
I am facing issues when the user uploads more that 5 mb of file as it
exceed the heap size limit. user can select file upto 10 mb.
Can we upload the image directly from VF using some java script to sharepoint. I will need to perform authentication(BASIC) as well and get the response and show it to user.
If yes, will i be able to encode the file which user selected directly in VF or I need to do the encoding in apex?