How I get path from Textfield Upload

Hi, I would like to get path name from Textfield Upload. Help me please.

Sorry, I can not write English well. I am Thai people

Due to security reasons it’s not possible.


I would like to read data from .dat. How to use other in this issue?

This is my code from java swing application.


public class ReadUTF8Data {

    private static final String FILE_ENCODE = "TIS-620";

    public static void main(String[] args) {
        String data = null;
        BufferedReader dataIns = null;
        String file = "c:\\Backup_DatabasePerson.dat";
        try {
            dataIns = new BufferedReader(new InputStreamReader(
                    new FileInputStream(file), FILE_ENCODE));

            while ((data = dataIns.readLine()) != null) {
            dataIns = null;
        } catch (IOException e) {

I use JFileChooser chooser = new JFileChooser(); in java swing. How to use this in vaadin

Take a look at
the Upload section
in the Book of Vaadin. It explains how to use Upload and provides an example. In short, you have to implement a few interface to be able to receive data from Upload.

Thank you so much Mr.Henri Kerala. I will try.