Re: Problem reading a file GWT
Not sure what you mean, have the client read a file from the user's computer and send it to your server? This is a security risk, so there are only very restricted way of doing this, requiring the user to select the file. I recommend using the gwt-upload library, found here: http://code.google.com/p/gwtupload/. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem reading a file GWT
First thanks for reply, My issue is: I need take one or more files uploaded by the user and procesing it in the server side consuming a service that is imported of another project. Thanks again, 2010/3/25 kozura koz...@gmail.com Not sure what you mean, have the client read a file from the user's computer and send it to your server? This is a security risk, so there are only very restricted way of doing this, requiring the user to select the file. I recommend using the gwt-upload library, found here: http://code.google.com/p/gwtupload/. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem reading a file GWT
The answer is the same, you need to use something like gwt-upload to get the files from the user/client to your server. Once this gets the file onto your server, you can process it however you want, with another service or anything. You cannot use RPC to do this because your client has no direct access to the files on the user's machine - and for good security reasons! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem reading a file GWT
Ask the user to select the file via a FormPanel with a FileUpload widget. Process the file in your RPC method, and return the user what results you will in a serializable object. On Mar 25, 2:13 pm, Lucas Rios lucasri...@gmail.com wrote: First thanks for reply, My issue is: I need take one or more files uploaded by the user and procesing it in the server side consuming a service that is imported of another project. Thanks again, 2010/3/25 kozura koz...@gmail.com Not sure what you mean, have the client read a file from the user's computer and send it to your server? This is a security risk, so there are only very restricted way of doing this, requiring the user to select the file. I recommend using the gwt-upload library, found here:http://code.google.com/p/gwtupload/. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.