+ Start a Discussion
Tanner RussellTanner Russell 

File Upload and Read Help

I want to store a json file then read the file from apex how do I upload a file to use? Also any examples of reading in a file to a string would be nice
karthikeyan perumalkarthikeyan perumal
Hello

kinldy look below like for reading data from file using  apex file uploader. this is the sample code. modify the code according to your needs.  

http://www.salesforcetutorial.com/apex-example-reading-data-from-text-file/

http://www.sfdcpoint.com/salesforce/import-csv-file-using-apex-visualforce/


Hope this will you. 

Thanks
karthik