Hi, all,
I am working on a fairly basic utility to do file importing for our data
/ image indexing department. I would like this to be client-server based
using remoting so that the file copy work is done on the server side rather
than the client. Here's my question / issue.
On the client side, consumer applications will create a datatable that
lists all of the file paths for the source files to be merged into our
central repository. I want to hand that datatable off to a server object
via remoting. I got the basics working, but ran into a snag.
The server process that copies the files into the repository also
changes the file paths. I want to populate the datatable with the new
filepaths such that the client sees the updated path. However, because the
datatable is serializable and passed by value (i.e. a copy is made), the
changes I make on the server side are not reflected on the client.
Is there a way to get the changes to propogate back to the client (i.e.
pass the datatable by reference rather than by value)? I thought of
changing the return type of the remote method call and passing back the
modified dataset, but I thought I would see if perhaps I was just making
some configuration error first.
Thanks,
David
William Stacey - 29 Jul 2003 22:50 GMT
I think your right David. You need to return the table again by value as I
don't believe a Datatable can be byref. If wrong, look forward to the
update.
> Hi, all,
> I am working on a fairly basic utility to do file importing for our data
[quoted text clipped - 21 lines]
> Thanks,
> David