#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2002
    Location
    Chicago
    Posts
    3
    Rep Power
    0

    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!
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Posts
    2
    Rep Power
    0
    Hi,

    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
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2002
    Location
    Chicago
    Posts
    3
    Rep Power
    0
    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
    Thanks

IMN logo majestic logo threadwatch logo seochat tools logo