add some comments
This commit is contained in:
parent
7425058951
commit
d5da36a180
@ -262,6 +262,7 @@ public class IITC_FileManager {
|
|||||||
mResultCode = resultCode;
|
mResultCode = resultCode;
|
||||||
mData = data;
|
mData = data;
|
||||||
|
|
||||||
|
// read file in new thread using Runnable interface, see run()
|
||||||
new Thread(this, "FileRequestReader").start();
|
new Thread(this, "FileRequestReader").start();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -272,6 +273,9 @@ public class IITC_FileManager {
|
|||||||
Uri uri = mData.getData();
|
Uri uri = mData.getData();
|
||||||
File file = new File(uri.getPath());
|
File file = new File(uri.getPath());
|
||||||
|
|
||||||
|
// now create a resource that basically looks like:
|
||||||
|
// someFunctionName('<url encoded filename>', '<base64 encoded content>');
|
||||||
|
|
||||||
mStreamOut.write(
|
mStreamOut.write(
|
||||||
(mFunctionName + "('" + URLEncoder.encode(file.getName(), "UTF-8") + "', '").getBytes());
|
(mFunctionName + "('" + URLEncoder.encode(file.getName(), "UTF-8") + "', '").getBytes());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user