Re: A file writing dilemma....!



Hi Ingo,

I recon the images are best saved to disk than the database, especially
as I am using a remote shared server. If I were running this on my own
machine I might think differently. It is the backup issue and file
copying that move me towards having a file system solution, as I could
have several thousand images in a year's time.

I'll try and clarify the problem here:

I have a web application context deployed in a WAR file called
context1. This is the main application. I have configured a second
context called context2 which has a docBase outside of context1'.

Within the context1 application I have a Struts enabled JSP with a form
for submitting an image file. This form's corresponding action class,
when complete, will get the file and write it to a directory within
context2 of my chosing. I might have to create a new directory, but the
long and short of it is that it will be written to this context.

In context1's web application there will be another JSP that will
display the image, but via a servlet so that I can overlay watermarking
on the image and create a dynamic thumbnail.

I hope that makes things more clear?

Thanks in advance for your help.
Andrew


Ingo R. Homann wrote:
Hi,

I'm not sure, if I understand you correctly, but why do you not want to
store the Image in the database?

BTW: In HttpServlet, there are methods to get the directory of a
webapplication where you could store files.

Ciao,
Ingo

.



Relevant Pages

  • cdt glossary 0.1.4
    ... This glossary seeks to limit lengthy misunderstandings ... basic database research and mathematics. ... When context matters, it is provided. ... It is /not/ the same as a reference. ...
    (comp.databases.theory)
  • Re: Database design, Keys and some other things
    ... except maybe that a database contains dead objects in the sense then as soon as they are in the database they stop behaving - food for another thread). ... some of their facts to establish that reason. ... to a refutation of the idea that there's any essential difference between the industry standard external identifier and the database-specific surrogate key: it's a matter of context merely, and not anything intrinsic to that data, or how it is managed. ... What is essential to this question is what their nature is. ...
    (comp.databases.theory)
  • Re: Problems binding to LDAP
    ... context in the LDAP naming services. ... # Sample access control policy: ... # ldbm and/or bdb database definitions ... // of this initial directory context. ...
    (comp.lang.java.programmer)
  • Re: auditing with context?
    ... so it would seem that a generic method which jumps up on ... Its probably best implemented by doing all database updates through ... If you want to record context then this must must be ... Its also essential if the audit trail is ...
    (comp.lang.java.programmer)
  • Re: Basic data definitions
    ... >> I need some basic database definitions. ... >> not want any ridicule. ... Information can be defined as, knowledge that, within a certain context, has ... since data implies meaning or informational ...
    (microsoft.public.sqlserver.programming)