I am working on a application that allows the user to store a very large amount of text ( a job seeking application ). I am not new to the derby database but have never used the Blob data type that it supports. I am struggling very hard to understand how the Blob data type works. It is very different from the basic setString method.
I have a JTextArea in my application and wan't to save the text from that component in to a Blob and then read from it but this is above my current level of knowledge so I am asking for a little help here.
I have tried something like this but this is obviously not working, since I am a Blob-newbie!
and then ...
I am wondering if anyone could show me how this is done in the the real world? This is quite urgent for me since I am working against a deadline so any help is greatly much appreciated in advance and thanks to all that have taken their time to read this post!
Best Mr, Tolls! Sorry for a late reply! I finally found the solution for this problem. After a bit reading I just find out that using a Clob is a better choice for storing large text than a Blob.
Here is my solution and first the setClob code part:
And this is how i extract the text from the current clob object:
Best regards and wishes,
You may have just won ten million dollars! Or, maybe a tiny ad.