------------------------------------------------------------------------------
I've implemented (or used? I forget) a pretty simple and performant
system as follows:
* checksum (say, MD5) of image is stored in the database
* actual image file is stored on a filesystem directly accessible from
the Web front-end/application (it is either the same filesystem or a
mounted filesystem, or--see below--a separate image store served by a
dedicated HTTP server)
* directory structure with images is separated based on the first five
characters of the image's hash. For instance, the image with a checksum
d41d8cd98f00b204e9800998ecf8427e would be stored at this location:
images/d/4/1/d/8/d41d8cd98f00b204e9800998ecf8427e
* the former is to guard against limits on the number of files in a
directory, and can be tuned as/if necessary
* if any image manipulation is necessary (ie: shrink or make a thumbnail
on the fly), the Web front-end/application can load the image directly
(via Java I/O) and make the necessary modifications
* small versions / thumbnails can also be generated upon upload
* images can be also served from a dedicated lightweight Web server that
serves only static content
* since the MD5 sums are basically guaranteed to describe unique images,
the image store can be shared across multiple Mifos instances (ie: a
multi-tenant to multi-server situation)
There may be something off-the-shelf that does all this, but this was
kinda fun and not complex.
------------------------------------------------------------------------------
------------------------------------------------------------------------------
------------------------------------------------------------------------------
------------------------------------------------------------------------------
> Speaking of which did
> you know account.collateral_note is a TEXT field? We noticed that
> because there seems to be no way to show it in a BIRT report... It
> seems like a normal varchar would suffice, hopefully you will consider
> changing it.
Hi Sam,
Thanks for noticing and reporting this. I added this enhancement in the
issue tracker:
http://mifosforge.jira.com/browse/MIFOS-2905
Emily
------------------------------------------------------------------------------
--
You received this message because you are subscribed to the Google Groups "Mifos Developer" group.
To post to this group, send email to mifosdeveloper@googlegroups.com.
To unsubscribe from this group, send email to mifosdeveloper+unsubscribe@googlegroups.com.