My idea is that I convert the uploaded bitmaps to .png or .jpg via a graphics library via PHP and make some kind of web management system. However when I try to manually open the bitmap file, I can't do it.
I've come across the function that saves the crests to the drive:
public boolean savePledgeCrest(int newId, byte[] data)
{
File crestFile = new File(Config.DATAPACK_ROOT, "data/crests/Crest_" + newId + ".bmp");
try
{
FileOutputStream out = new FileOutputStream(crestFile);
out.write(data);
out.close();
_cachePledge.put(newId, data);
return true;
}
catch (IOException e)
{
_log.log(Level.INFO,"Error saving pledge crest" + crestFile + ":", e);
return false;
}
}
Which I trace into RequestSetPledgeCrest.java, but there it doesn't really shed anymore light on the situation. The file itself seems to be stored in a byte array which is read from readB();, but I can't venture any further into this function.
I'm using l2aCis interlude. Anybody have any extra information on this?
Question
dpbBryan
My idea is that I convert the uploaded bitmaps to .png or .jpg via a graphics library via PHP and make some kind of web management system. However when I try to manually open the bitmap file, I can't do it.
I've come across the function that saves the crests to the drive:
public boolean savePledgeCrest(int newId, byte[] data) { File crestFile = new File(Config.DATAPACK_ROOT, "data/crests/Crest_" + newId + ".bmp"); try { FileOutputStream out = new FileOutputStream(crestFile); out.write(data); out.close(); _cachePledge.put(newId, data); return true; } catch (IOException e) { _log.log(Level.INFO,"Error saving pledge crest" + crestFile + ":", e); return false; } }Which I trace into RequestSetPledgeCrest.java, but there it doesn't really shed anymore light on the situation. The file itself seems to be stored in a byte array which is read from readB();, but I can't venture any further into this function.
I'm using l2aCis interlude. Anybody have any extra information on this?
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now