Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JDBC and Relational Databases
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
JDBC and Relational Databases
insert CLOB into MS SQL Server 2K
Dave Bosky
Ranch Hand
Posts: 72
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I have a large textarea field in a form field called details.
I get the textarea field value like so:
String
details= request.getParameter("details");
But I need to convert the string datatype to CLOB datatype
so I can insert the data into a CLOB field.
Can I cast this somehow?
Thanks,
Dave
Natarajan Shankar
Ranch Hand
Posts: 53
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
For CLOB/ BLOB data-type you need to open stream of the data-typoes and write the information through the stream. As I known, direct casting is not possible through API level.
Best Regards<br />N.Shankar<br />SCJP, SCWCD
Dave Bosky
Ranch Hand
Posts: 72
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Could you provide a simple example of creating the required stream?
Thanks,
Dave
Destiny's powerful hand has made the bed of my future. And this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
use of CLOB
help: lock problem during Clob update
how to cast String to Clob ?
use of CLOB,help me.
Converting a String to Clob for insert into DB
More...