Re: Upload with incorrect encoding

2003-12-01 Thread O . Vobejda
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

Upload with incorrect encoding

2003-11-30 Thread O . Vobejda
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

Re: Upload with incorrect encoding

2003-11-30 Thread Jorg Heymans
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, many

Re: Upload with incorrect encoding

2003-11-30 Thread O . Vobejda
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

Re: Upload with incorrect encoding

2003-11-30 Thread Jorg Heymans
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

Re: Upload with incorrect encoding

2003-11-30 Thread Christian Haul
[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

Re: Upload with incorrect encoding

2003-11-30 Thread Geoff Howard
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