15 Replies - 757 Views - Last Post: 17 July 2012 - 02:36 PM
#1
Reading files from hardDisk and storing as variables?
Posted 16 July 2012 - 07:17 PM
can I do this with ObjectInputStream()?
Replies To: Reading files from hardDisk and storing as variables?
#2
Re: Reading files from hardDisk and storing as variables?
Posted 16 July 2012 - 08:28 PM
Its just going to eat a crapton of ram.
#3
Re: Reading files from hardDisk and storing as variables?
Posted 16 July 2012 - 08:36 PM
Any tutorial that shows you how to load a sound file and play it back will also show you how to load it and store it for later, but what do you want to do with the sound file once you have it?
#4
Re: Reading files from hardDisk and storing as variables?
Posted 17 July 2012 - 08:30 AM
so it could become almost like a music or video library. I would probobly add a simple JFrame with a cupple buttons to interact with it and a JList to display them. I am planing to serialize the class at the end to store the library.
#6
Re: Reading files from hardDisk and storing as variables?
Posted 17 July 2012 - 08:40 AM
#7
Re: Reading files from hardDisk and storing as variables?
Posted 17 July 2012 - 09:02 AM
are variables sored in ram because if this is true than do I need to find another way of doing this?
#8
Re: Reading files from hardDisk and storing as variables?
Posted 17 July 2012 - 09:26 AM
#9
Re: Reading files from hardDisk and storing as variables?
Posted 17 July 2012 - 09:30 AM
#10
Re: Reading files from hardDisk and storing as variables?
Posted 17 July 2012 - 09:41 AM
#11
Re: Reading files from hardDisk and storing as variables?
Posted 17 July 2012 - 10:04 AM
We're assuming that you're talking about some ordinary use case, like a media player or something, and evidently that's wrong.
What exactly are you up to?
#12
Re: Reading files from hardDisk and storing as variables?
Posted 17 July 2012 - 10:21 AM
#13
Re: Reading files from hardDisk and storing as variables?
Posted 17 July 2012 - 10:33 AM
Quote
Yes. And I'm asking why is it important for the file not to be readable. Serialization really isn't the best way to accomplish this. It would be much better to actually encrypt the ZIP file than to serialize the Objects.
#14
Re: Reading files from hardDisk and storing as variables?
Posted 17 July 2012 - 10:37 AM
Courtney2012, on 17 July 2012 - 12:21 PM, said:
To what end? What purpose will this serve? When will I reach for this tool, and what will I be trying to accomplish?
#15
Re: Reading files from hardDisk and storing as variables?
Posted 17 July 2012 - 02:21 PM
|
|

New Topic/Question
Reply



MultiQuote






|