> -----Message d'origine-----
> De: Björn Voigt [mailto:bjoern-voigt@;gmx.de]
> Date: jeudi 24 octobre 2002 22:32
> Ā: cocoon-users
> Objet: Which way is the best to output blobs from db to user?
> 
> 
> Hello cocooners,
> 
> i have a mysql database with a table containing pictures as blob.
> In an old Version of my Web-Application I used a servlet to output
> the pictures via http. Now I want to take Cocoon to do this.
> My question is which way is the best way to solve my problem?

A blob can be VERY easily exported from a database via the blob:/ pseudo
protocol.
YOu can refer to any blob in the database via a simple URL.
So to retrieve it via HTTP is as easy as having such a pipeline:

<map:match pattern="...">
 <map:read src="blob:/..." mime-type="..."/>
</mpa:match>

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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

Reply via email to