I was calling a Python 2.7 program from Java, which passed a file name as a String.
sys.argv to read in the filename, then
afile = fileinput.FileInput(filein) for row in afile:
to read through it.
Works great, but now I need to read in Java's MultipartFile object (ie a file, not just its name). How do I read and loop through the object as opposed to the filename?