The primary design goal of the HTML file input widget is for the user
to select a file, which is then uploaded to a servlet for processing
on the server. For a high level overview of the process, search this
forum for fileupload, for example:
Second, the c:\fakepath\ thing is a security feature, originally
implemented in Opera and IE8, but now an official W3C standard. You
can read the background here:
http://blogs.msdn.com/b/ie/archive/2009/03/20/rtm-platform-changes.aspx
http://www.w3.org/TR/html5/number-state.html#file-upload-state
You might also want to review the File API, which allows for client-
side reading (not writing) of files selected by the user in a
fileupload widget.
http://www.w3.org/TR/FileAPI/
https://developer.mozilla.org/en/using_files_from_web_applications
If your ultimate goal is to deliver a file to the client, you'll need
to get there in a roundabout way, by making the file available for the
user to download:
On Dec 28, 11:29 pm, jc <jc.chan...@gmail.com> wrote:
> Hi,
> I need to read a file and access it and write i.e i need to read a
> dicom file and get dicom data. due to i am new to GWT i don't know how
> to do. send me a sample code if you have. I used fileupload widget but
> its show only the file name with fakepath(c:/fakepath/filename).
--
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.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment