Hi, I have a little problem (I'm not sure, if it is problem of cocoon or pure
java - if so, I apologize :). When I want to store into database binary data of
uploaded file, many of characters are replaced by '?'. When I tried to store
data to the file, everything was ok (it means, that from Inpu
Doesn't your database support the blob fieldtype? I am not sure why you
store the inputstream in a string first.
> Hi, I have a little problem (I'm not sure, if it is problem of cocoon or
> pure
> java - if so, I apologize :). When I want to store into database binary
> data of
> uploaded file, ma
Db supports BLOBs, but I never did anything with them in java, less so
cocoon :) Is it possible to use ESQL someways? Probably not, isn't it :)
osup
Cituji z emailu od Jorg Heymans <[EMAIL PROTECTED]>:
> Doesn't your database support the blob fieldtype? I am not sure why you
> store the inputs
so you would need
1) action to retrieve uploaded file from the request (there are loads of
examples on the wiki and mailinglist)
2) inside the action you would upload it into the database using sth like
stmnt.setBytes(1, blobBytes) where blobBytes is a byte array with your
file data.
Retrieving the
[EMAIL PROTECTED] wrote:
Db supports BLOBs, but I never did anything with them in java, less so
cocoon :) Is it possible to use ESQL someways? Probably not, isn't it :)
ESQL and (modular) database actions support blob, clob types.
AFAIR ESQL can only get them while the actions can insert and
upda
Christian Haul wrote:
[EMAIL PROTECTED] wrote:
Db supports BLOBs, but I never did anything with them in java, less so
cocoon :) Is it possible to use ESQL someways? Probably not, isn't it :)
ESQL and (modular) database actions support blob, clob types.
AFAIR ESQL can only get them while the a
Thanks for your answer. But I'd like to ask, if is possible to do it inside XSP
script. I need to do much more stuff with the data of the upload form (another
inserts, logic etc.) then just storing the file into db. I know, that it could
I do with action too, but it's not as comfortable and stra