December 10, 2007...4:30 pm
ePasa Portfolio Update - Image and File Upload Issue
We have started coding for the upload functionality which will also include uploading images.
On our last meeting, Sir Feria suggested that images and all the works of the students be stored in the database as BLOBs so it can be backed up easier.
We’ve considered this but after some reading, we’ve decided to store the image and other student works in the file system. Here are the reasons why:
1. It’s always been an issue whether or not it is a good practice to store files in the database. We believe that it is a much better practice to store the files in the file system and store the its path on the database.
2. GWT needs the URL of an image. It can’t create an image from a byte array. Although we can create a php file, we have read that IE7 does not support this outright and needs a few clever, albeit rather unnecessary steps to implement this.
We will deploy this functionality as soon as we’ve finished coding it.
Here are some threads we’ve read for uploading/downloading images.
1 Comment
December 10, 2007 at 6:56 pm
Before you proceed with your implementation, please justify.
The issues far outweigh the benefits - at least at the moment (until you can justify.
Also, are you sure that you need to use AJAX when accessing the images? This may not be needed. Why use PHP? I mean, you can always use Java to interpret the byte code. Since when did we use PHP for your project?
Security is much more important than convenience. Don’t sacrifice security for convenience.
Leave a Reply
You must be logged in to post a comment.
You must be logged in to post a comment.