For multipart/form-data request, a servlet can get a java.io.InputStream if com.oreilly.servlet.multipart package is used. If I want to use the InputStream to store data into database, do I have to use jdbc from this web tier? Can I pass the InputStream into stateless session tier in another jvm? Can I pass InputSteam among web, session entity tiers in this case because InputSteam is just a connection to web-client in this case although InputSteam is not serializable?
I appreciate it if You can make me clear on this issue.