AW: [opencms-dev] Problems with file upload

Mark Miller mark.miller at hema.ch
Tue Apr 13 08:17:01 CEST 2004


I wouldn't bother using a blob field ... not very good in sql.

Use a filename field and simply write the path+filename in and save the
file somewhere locally ... much cleaner approach.



Kind regards,
 
Mark Miller
 
Hema Computersysteme AG
Frauholzstrasse 9a
6422 Steinen
 
Phone: +41 (0) 41 833 88 88
info at hema.ch
www.hema.ch


-----Ursprüngliche Nachricht-----
Von: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org] Im Auftrag von Barák Tamás
Gesendet: 12 April 2004 14:25
An: opencms-dev at opencms.org
Betreff: [opencms-dev] Problems with file upload

Hi!

I'm quite a newbie in OpenCms, and I have a very big
problem... I must upload small files from a form to a
database table. (not to the virtual file system) I can
upload the file from the form to the jsp page, but how
can i transform this byte array to the blob type? Or
if my way was wrong, how can i do this at all? This is
the part of my program that do this...

String filename =
cms.getRequestContext().getRequest().getParameter("file");
byte[] file =
cms.getRequestContext().getRequest().getFile(filename);

I very need help!

Tom

__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html
_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please
visit
http://mail.opencms.org/mailman/listinfo/opencms-dev






More information about the opencms-dev mailing list