This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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)
Joined: Aug 11, 2009
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"
Joined: Apr 24, 2010
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.