Is there any way to read the size of a file? I’m writing code to allow the customer to save attachments (which are saved as BLOBs in the database), but until I actually try to save them I don’t know if they’re going to be too big for the database.
Sure:
from java.io import File
myFile = File("C:\\something.txt")
print "The length is ", myFile.length()
Just the ticket, Carl. Thanks!