after some struggling i've been able to modifie the code to suite my needs and make it work,
nothing fancy, just passing some new user defined params along with the file,
but i'm not able to upload gz files , only text files and images,
can someone point me in the right direction? am i missing something here?
by the way, i can upload gz files, but it seems it goes up with the wrong encoding,
and at the end, the is corrupted and not compressed.
i have the fealing the problems is somewere around here
Description: I'm storing an hasmap into a json formated file (kind of associative array). I'm making my own parsing functions, since i never found how to convert an array into a json string. I found lot's of code samples converting a json string into an array, but not the oposite. If someone point me into some sample code , i'd be apreciated.
But for the moment the real issue is: i have my json string (2D associative array) to convert back to an hasmap and i want to fetch values without knowing the key names.
description: i have a hashmap
with objects (class Child), i wonder if when i get the object from the hashmap is by reference and if i update it, will change inside the hashmap. if not, how can i update it.
code: HashMap Parent = new HashMap(); // the hashmap
Child child = (Child) Parent.get(id); // geting the object
child.update(school,grade); // running objects update function
result: gives no error, but doesn't update the hasmap.
every day i download and save a file into the data folder,
that file's name will be the formated date, ex : "20120103" ( got it? 2012/01/03)
so, i'll get a list of files along the week like this:
20120103
20120104
20120105
20120106
20120107
every time i download a new file (one time per day), i want to compare it's content to the previous day,
so, how do i use this functions day(), month(), year(), to find the "yesterday"?
yes, i could just subtract the day value, in case of < than 0 , subtract the month, etc, etc.... using a list for the amount of days in a month and then format it, but, theres nothing more acurate?