Philip Cote wrote:
I'm trying to write to binary data from a MySQL database into a jpeg
file so I can show it on a jsp page but I'm not having much luck. My
bean can create files outside the servlet / jsp context using the
usual java.io classes. As I understand it, java.io classes aren't
allowed for EJBs. Does this apply to plain java beans as well? If
so, what are the alternatives for doing what I'm trying to do?
your java classes can do anything the VM process is permitted to do,
unless you have restricted using a security manager and the
catalina.policy file (i think eg. debian tomcat packages do that by
default). i'm not sure just jow exactly you are trying to serve those
images to the client and why you want to write them (temporarily) to the
file system. i would probably want to send them back directly from
memory after reading them from the DB as a blob (much like Larry Meadors
just suggested while i was writing this ...).
Edmund
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]