Tag: get
-
How to get a File object of an Android raw resource using reflection
Context: You have a URI to a resource which is placed in the raw directory inside the Android resources directory, res. Say you want to take that raw resource(let’s say it’s an image) and add it to an attachment using FIleBody to a MultiPartEntity. Both these classes are available in the Apache HTTP Components library. FileBody…
-
recursive get from an FTP server
As we all know, downloading a directory from an FTP server over FTP over the command line is not possible. Some, have found mget to be the holy grail, I certainly do not. I was restoring my music backup from my NAS, and I didn’t want to do it the GUI way, so CLI is…