doPost -> Java/Blob
I am trying to post a very large text area (needing a Blob) in mysql thru java.
I am using the post method in the form and the doPost method in HttpServlet.
I have tried using response.getParameter() but that only takes a string and is already not big enough to hold the field.
Right now I have gotten as far as using:
ServletInputStream servletStream = request.getInputStream();
(I dont even know if that will work)
But do not know where to go from there to getting the Blob stored into the database.
Any help is much appreciated!
I was wondering how big your data is.
I'm using mysql blob and JSP to do something similar....so far so good for 3-4 pages of text
users are inputting source code...could be anything up to about 2000 lines...which could vary depending on how much is actually on each line
I've tried it without blobs and on average it would take about 800 lines (dunno how many characters on avg)
I thought about using JSP but haven't really touched upon it. If you can show me a thing or two that would be excellent