yep! I got it, it's compile with RawScreen but impossible to found sample
ImageScreen or ImageServer screen class contained in the TDK like it's
explained in RawScreen comments. (it's just to inform)

So, now, I got some problem to include the screen in my template. What I
should do in my Velocity screen?

Thanks for that.
Xa.

-----Message d'origine-----
De : Brekke, Jeff [mailto:[EMAIL PROTECTED]]
Envoy� : vendredi 7 septembre 2001 02:27
� : '[EMAIL PROTECTED]'
Objet : RE: Show image coming from db with turbine


http://cvs.apache.org/viewcvs/jakarta-turbine-2/src/java/org/apache/turbine/
modules/screens/RawScreen.java?rev=1.1.1.1&content-type=text/vnd.viewcvs-mar
kup

There used to be a sample somewhere called ImageScreen?  Any way we do this
in turbine by subclassing RawScreen.

l8r,

jb
-----------------------------------------------------------------
Jeffrey D. Brekke                                   Quad/Graphics
[EMAIL PROTECTED]                              http://www.qg.com
-----------------------------------------------------------------



> -----Original Message-----
> From: Xavier Michel [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 06, 2001 9:46 PM
> To: Turbine-User
> Subject: Show image coming from db with turbine
>
>
> Hi,
>
> May be it's newbies question... :-/
>
> I tried to show an image coming from mySQL. found nothing in
> the doc and
> mail-archive.
>
> I did :
> ....
> public class ArtisteTrombine extends HttpServlet {
>     protected void doGet(HttpServletRequest req,
> HttpServletResponse res)
>     throws ServletException, IOException {
>
>         byte[] trombine = null;
>         try {
>             Criteria aCriteria = new Criteria();
>             Vector aResultList = ArtistePeer.doSelect(aCriteria);
>             Artiste aArtiste = (Artiste) aResultList.firstElement();
>             trombine = aArtiste.getTrombine();
>
>         if (trombine != null) {
>             res.setContentType("image/jpeg");
>             ServletOutputStream out = res.getOutputStream();
>             out.write(trombine);
>         }
>         }
>         catch (Exception e ) {
>             Log.debug(e.getMessage());
>         }
>     }
> }
>
> and in my template :
>
> <img src="/servlets/pf.cs.gtr.modules.actions.ArtisteAction" >
>
> I'm think, I'm wrong
> If somebody used, thanks for the help
>
> Xa.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to