I don't want to save a physical file anywhere. The user needs to upload a CSV file and then I want to read it directly in memory and do things based off what I find in that file.
I found a sample on this site saying you could use the "InputStream" property to read in the file, but the example showed a simple table with "file name", "file size", and one big blob column for "file contents", which is not really reading the file itself. I need to get the contents of the file into a string and then break that apart by commas and process accordingly.
Is there a way for me to take the uploaded file bytes and turn them into a string that contains the exact data the CSV file contains, or is a byte array the best I can do without writing the file to disk?
I found a sample on this site saying you could use the "InputStream" property to read in the file, but the example showed a simple table with "file name", "file size", and one big blob column for "file contents", which is not really reading the file itself. I need to get the contents of the file into a string and then break that apart by commas and process accordingly.
Is there a way for me to take the uploaded file bytes and turn them into a string that contains the exact data the CSV file contains, or is a byte array the best I can do without writing the file to disk?