This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Hi There , are you talking about uploading Files.
Then when using the JFileChooser to uploading the Files, at the time when using the Chooser just only take the absolute path, then at the time of loading read the file from the Path; read the file part by part or it can have Heap size Issue (for Large files)
Roldan Baldo
Ranch Hand
Joined: Aug 11, 2009
Posts: 99
posted
0
yes, i am going to get the picture from the disk then load it in my variable/field in my program and use it.
i dont get this straight
"at the time when using the Chooser just only take the absolute path, then at the time of loading read the file from the Path"
because when i load the JFileChooser it direct the path to the "my documents"
Rohit Kedia
Ranch Hand
Joined: Apr 24, 2010
Posts: 78
posted
0
When you are using the JFIleChooser to select the File Just take a File Reference(which you are doing) and take the Absolute Path.
Then say suppose you want to load it in any Database(say) at that time you can read the File Contents part by part.
On my machine a JFileChooser sometimes loads slowly. Also Windows Explorer sometimes loads slowly. I wouldn't expect Java's code to be better than Windows's code.