Hi forum,
I have no options anymore, so my question is for Mr. [MENTION=11153]Chris Babcock[/MENTION] , because I know he take care about android users, however I post here in case some guru are able to help me :(.
This is the problem I have, I need access the main.obb.png because it have some files required for my app, this files are injected to the obb by using Additional Non-Assets Directores to copy in my project settings, and with an custom plugin, and with an custom APL.xml I´m able to introduce my own java code in unreal, now inside Java I use InputStream to access the zip file and get my files and work!!! YEEEEI, then inside my module I copy this file to another location and when my module start it´s work!!! YEEEI x2, but here the problem, because everything is package inside the .zip main.obb.png, depending of our project, sometimes this file is HUGEEEE!!!, and my InputStream is unable to read huge files, just fail, so right now I´m research for a new way to fix that, so you know a way to access it safety? or another way to inject my custom files inside my package?
this the important code in java:
InputStream fin; = getAssets().open("main.obb.png"); // here the problem, this code work but just for small main.obb.png
ZipInputStream zin = new ZipInputStream(fin);
ZipEntry ze = null;
while ((ze = zin.getNextEntry()) != null)
{
if(ze.getName().contains("Content/MYFILES"))
{
String] splitt = ze.getName().split("/");
String fileName = splitt[splitt.length - 1];
if(ze.isDirectory()) {
//dirChecker(ze.getName());
} else {
File checkPrev = new File(newPath + fileName);
if(checkPrev.exists())
{
android.util.Log.d("COPYLog", "unzipped before: " + newPath + fileName);
zin.closeEntry();
continue;
}
FileOutputStream fout = new FileOutputStream(newPath + fileName);
for (int c = zin.read(); c != -1; c = zin.read()) {
fout.write(c);
}
android.util.Log.d("COPYLog", "unzipped: " + newPath + fileName);
zin.closeEntry();
fout.close();
}
}
}
zin.close();
android.util.Log.d("COPYLog", "unzipped complete! !");