Hi,
I’m developing a solution where files are stored to the database. The files aren´t too big (2Mb max size), but when the record data is saved (databaseManager.saveData()) it blocks the UI (a 2Mb file blocks the UI about 20-40 seconds).
Is there any way to prevent this block?
if it really takes 20-40 second to upload the 2MB file then you can’t do much about it if you want to store them in the db.
You could use the file plugin to save them on disk on the server using the streaming features. (streaming happens in background)
or you could use the headlessclient plugin to do the save on the server, and call queueMethod() on the JSClient to stream it to the server and that client there then saves it.
jcompagner:
you could use the headlessclient plugin to do the save on the server, and call queueMethod() on the JSClient to stream it to the server and that client there then saves it.
Thanks Johan, I’ll try this approach.
There is also a third party plugin from IT2BE (http://www.servoycomponents.com) called DataStream that streams files to the database (or to the server file system) in the background.