how to transfer binary file from gwt java and external js ? how to save existed memory file to server from gwt java ?

2015-12-26 Thread Lean Fu
I'm newbie to gwt, there're two questions needs community help, one is how to transfer a binary file between gwt java and external js ? how to organize the parameters format in respective side ? another question is how to upload a memory file to server , I don't means that FileUpload widget

Re: how to transfer binary file from gwt java and external js ? how to save existed memory file to server from gwt java ?

2015-12-26 Thread xybrek
On 12/26/2015 3:13 PM, Lean Fu wrote: I'm newbie to gwt, there're two questions needs community help, one is how to transfer a binary file between gwt java and external js ? how to organize the parameters format in respective side ? another question is how to upload a memory file to server , I

Re: Read in binary file into byte[] ?

2012-05-23 Thread Carsten
I think I should have been more clear. I don't want to load a file from the users computer. I want to read a file from the directory on the server where my GWT app lives. I just want to know the options I have to read this binary file into a byte[]. I am very new with GWT :) On May 23, 4:53 am

Re: Read in binary file into byte[] ?

2012-05-23 Thread Sebastian Gurin
to know the options I have to read this binary file into a byte[]. I am very new with GWT :) On May 23, 4:53 am, Jim Douglas jdou...@basis.com wrote: Not in GWT proper, and not reliably in all browsers.  Start your reading here: http://www.google.com/search?q=javascript+file+api On May

Re: Read in binary file into byte[] ?

2012-05-23 Thread Carsten
Well, it is a binary file with point/spline-data. I need to construct eventually Path objects out of this data and draw it on a canvas. A byte[] would be the perfect data structure to hold this data. On May 23, 3:26 pm, Sebastian Gurin sgu...@softpoint.org wrote: in general you don't use byte

Re: Read in binary file into byte[] ?

2012-05-23 Thread Jim Douglas
to the client as the final step. On May 23, 9:39 am, Carsten carsten.schm...@googlemail.com wrote: Well, it is a binary file with point/spline-data. I need to construct eventually Path objects out of this data and draw it on a canvas. A byte[] would be the perfect data structure to hold this data

Re: Read in binary file into byte[] ?

2012-05-23 Thread Sebastian Gurin
this servlet with ajax, perform eval() for obtaining the javascript array of values, and do the drawing using that javsacript array of numbers. Hope that helps. On Wed, 23 May 2012 09:39:03 -0700 (PDT) Carsten carsten.schm...@googlemail.com wrote: Well, it is a binary file with point/spline-data. I need

Re: Read in binary file into byte[] ?

2012-05-23 Thread Joseph Lust
See the Google IO games lecture @ 33:50, they discuss this issue in GWT with binary data transfers: http://www.youtube.com/watch?v=NNmoEOpGJdk Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on

Re: Read in binary file into byte[] ?

2012-05-23 Thread Sebastian Gurin
they mention passing the binary data using utf strings. I wonder if in the server side we can use TextResource.getText().getBytes(UTF-8) safely for that. Also it uses JavaScript typed arrays (new FLoat32Array) for accssing the array in javascript but I wonder if that is really neccesary.

Read in binary file into byte[] ?

2012-05-22 Thread Carsten
Hi, is it possible to read in a binary file in my GWT Java-code and convert it into a byte[] ? Thanks! Carsten -- 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-toolkit@googlegroups.com

Re: Read in binary file into byte[] ?

2012-05-22 Thread Jim Douglas
Not in GWT proper, and not reliably in all browsers. Start your reading here: http://www.google.com/search?q=javascript+file+api On May 22, 12:42 pm, Carsten carsten.schm...@googlemail.com wrote: Hi, is it possible to read in a binary file in my GWT Java-code and convert it into a byte

Re: read remote binary file

2010-04-02 Thread alessandro
will understand--a serializable object in the case of an RPC method, a mime type in the case of a servlet--and return it to your client. What do you expect to do with the binary file on the client side if you had it there? On Mar 25, 6:56 am, alessandro gopavelned...@gmail.com wrote: hi all, I

read remote binary file

2010-03-25 Thread alessandro
hi all, I need to read a binary file located on a remote server I also see that I can't use HttpURLRequest java class how can I do? -- 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

Re: read remote binary file

2010-03-25 Thread Thad
. What do you expect to do with the binary file on the client side if you had it there? On Mar 25, 6:56 am, alessandro gopavelned...@gmail.com wrote: hi all, I need to read a binary file located on a remote server I also see that I can't use HttpURLRequest java class how can I do? -- You

binary file

2010-02-26 Thread gadaleta.marco
there is a way to parse a binary file (for example resource.txt)?? Thank you marco -- 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