I think Thomas means how do you get the ArrayBuffer.You said from the
FileReader but

How FileReader is created at the first place? I mean Is the script that
returns the FileReader loaded by

   1. your GWT script? If which option did you use ScriptInjector. If yes -
   did you setWindow?
   2. the host html page where your GWT script is loaded?

Documentation says:

File objects may be obtained from a FileList
<https://developer.mozilla.org/en-US/docs/Web/API/FileList> object returned
as a result of a user selecting files using the <input>
<https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input> element,
from a drag and drop operation's DataTransfer
<https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer> object, or
from the mozGetAsFile() API on an HTMLCanvasElement
<https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement>.

What happens if you put package name as $wnd?
@JsType(isNative = true, namespace = "$wnd")

    Vassilis




On Tue, Aug 22, 2017 at 9:28 PM, Thomas Broyer <[email protected]> wrote:

> Is the FileReader "instanceof $wnd.FileReader"? (Walk up the chain)
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Vassilis Virvilis

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to