Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 8th, 2002, 06:49 PM
Radii Radii is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Chicago
Posts: 3 Radii User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Radii Send a message via AIM to Radii
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!

Reply With Quote
  #2  
Old June 9th, 2002, 02:40 PM
science science is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 2 science User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to science
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

Reply With Quote
  #3  
Old June 9th, 2002, 02:57 PM
Radii Radii is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Location: Chicago
Posts: 3 Radii User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Radii Send a message via AIM to Radii
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > doPost -> Java/Blob

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap