Check out this
thread for size limitation.
You may be back to FileConnection which would allow you to write to an SDCard. 30-40 Mbytes would be pushing the limits for internal storage except for the Bold or Storm. Older devices only have 64MB of memory, and some of that is going to be used for other things.