I'm trying to upload a csv file from VF page. I'm using the inputFile component within apex:Form tags, and using blob data type in controller class and then converting it to string. The problem I'm facing: I get "Maximum view state size limit exceeded" error. It is because my csv file size is around 400KB. Is there any workaround? I've tried uploading the csv as a file in document object but cannot figure out how to read the data from this document file.
Can anyone please let me know how to read the csv file using document class methods or, any other way to read the csv file records (using VF page).