Upload Image File [message #1744676] |
Thu, 29 September 2016 12:41 |
|
Hi all,
I want to upload single image file then displaying it in a Control (Label ?). Then when user submits the form I want to save the file somewhere. I also want to be able to prevent user from uploading other file type.
From what I understand I can use FileUpload or FileDialog, but which one is the most suitable for this use case ?
Any advice would be greatly appreciated.
Thanks & Regards,
SetNug
|
|
|
Re: Upload Image File [message #1744911 is a reply to message #1744676] |
Sun, 02 October 2016 13:04 |
|
Hi Team,
I've decided to use FileUpload widget, but I've faced another problem.
On FileUploadReceiver#receive I put some code to update Label widget with the uploaded image in UI thread within Display#syncExec. But the image won't get shown unless I click the label area or drag around the FormDialog that contains the Label.
Upon debugging I found that the execution halts forever at Display#syncExec and eventually at RunnableLock#wait in Synchronizer#syncExec.
Any help would be greatly appreciated.
Thanks & Regards,
SetNug
|
|
|
|
Powered by
FUDForum. Page generated in 0.03998 seconds