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?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
🔥 The Grand Opening Day is Here!
⏳ In just a few hours, the gates will open and the war between ⚔️ Order and 💀 Chaos will erupt.
🏰 Two factions. One realm. Only the strongest will rise.
👑 Will you be the one to claim the throne?
📝 Register now : https://l2ovc.com/register
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:
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.