Originally posted by Ben Keeping:
I take it you mean as a binary BLOB field in the db ?
Originally posted by clio cat:
just a suggestion but:
(1) i'm not sure what FileDataSource class is doing, but I don't see why it should not have to relinquish it's file handle *before* you rename the file it has fetched for you... Will it not generate a FileNotFoundException sooner-or-later when it shuts-down/goes out of scope?
(2) i don't see anywhere that you give a (fully-qualified) filepath for the renamed file ... presumably it will be written to the 'current' directory - whatever that may be ... it may be better to give it an explicit path - at least you'll know where to look for it:-)
hth