[opencms-dev] Re: AW: Problems with file upload

Bar�k Tam�s ppwhere at yahoo.com
Tue Apr 13 12:47:01 CEST 2004


Hi!

Probably it would be good... But I have to store a
large number of small files... 
I'm a student in a university and my coordinating
teacher wants the BLOB... :-(
So I have to do it with it :-)

Tom

--------------------------------------
From: Mark Miller <mark.miller at hema.ch>
To: opencms-dev at opencms.org
Subject: AW: [opencms-dev] Problems with file upload
Date: Tue, 13 Apr 2004 08:14:08 +0200
Organization: hema computersysteme ag
Reply-To: opencms-dev at opencms.org

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=FCngliche Nachricht-----
Von: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org] Im Auftrag von
Bar=E1k Tam=E1s
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 =3D
cms.getRequestContext().getRequest().getParameter("file");
byte[] file =3D
cms.getRequestContext().getRequest().getFile(filename);

I very need help!

Tom



	
		
__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/



More information about the opencms-dev mailing list