Article View: es.comp.lenguajes.java
Article #665Duda con html:file
From: pyn
Date: Sun, 18 Feb 2007 17:11
Date: Sun, 18 Feb 2007 17:11
14 lines
1568 bytes
1568 bytes
Buenas! Estoy realizando un proyecto en struts, en una parte del mismo tengo un formulario con un campo de tipo <html:file>. En la base de datos no guardo el campo como tipo "imagen", si no que guardo su ruta. Sacar la informaci�n de la request para el nombre de la foto es bastante f�cil, lo que no s� hacer es guardar la foto en la ruta que necesito. En el m�todo de la action correspondiente hago lo siguiente: ProductoForm formulario= (ProductoForm) form; FormFile imagenURL = formulario.getImagenURL(); Vale ahora �c�mo hago para "guardar" f�sicamente ese objeto en el disco duro como una imagen?
Technical Details
Message-ID:
<45d888e1$1_2@filemon2.isp.telecable.es>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!switch.ch!news.rediris.es!newsfeed.uniovi.es!newsfeed.telecable.es!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1116f3,66243cf24bbe1f3e,start X-Google-Attributes: gid1116f3,public X-Google-Language: SPANISH,ASCII From: "pyn" <notelodigo@hotmail.com> Newsgroups: es.comp.lenguajes.java Subject: Duda con html:file Date: Sun, 18 Feb 2007 18:11:52 +0100 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 NNTP-Posting-Host: 83.97.209.54 Message-ID: <45d888e1$1_2@filemon2.isp.telecable.es> X-Trace: filemon2.isp.telecable.es 1171818721 83.97.209.54 (18 Feb 2007 18:12:01 +0100) Organization: TeleCable, S.A.U. Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!switch.ch!news.rediris.es!newsfeed.uniovi.es!newsfeed.telecable.es!not-for-mail