Question:
The code in which I have used PutFile() method for selecting a picture file from the harddisk to be saved in the database works fine from the Thin Client. However, when I tried it from the Web Client, the file selection dialog does not open, the system gives an error.
Answer:
For the code to work from Web Client, you must use the Asynchronous version of the PutFile() method, which is BeginPutFile(). How it is done is explained in the screenshot below. Also please take note that in the below example, BeginPutFile() method is nested in another asynchronous method called BeginAttachingFileSystemExtension().