Hi!
I'm trying to convert some existing code to Castor for storing files in
mysql, but it is causing me some headache :-(
I've read http://castor.exolab.org/types.html#BLOB-and-CLOB-Types, but
still don't get it.
The field is set to stream, but it seems that only plain text-files is
working.
The data is written to database for any file, but I must be doing
something wrong because after loading the object from the database and
write it to a response-object in a servlet I get a data-format error
(I'm trying to display an image-file).
Can I initialize the field with a FileInputStream and Castor writes it
to the database?
How do I use the stream-object after Castor have initialized the field
after I've loaded the object?
This sounds like basic java-questions, but I have working code that I
wanted to handle with Castor instead.
Stein
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
- Re: [castor-dev] BLOB How-To Stein M. Eliassen
- Re: [castor-dev] BLOB How-To Bruce Snyder
- Re: [castor-dev] BLOB How-To Stein M. Eliassen
- Re: [castor-dev] BLOB How-To Dnyanesh Y Sonavane
