I have a big problem and i have to solve it in max 15 hours.
I've made a chat. Both client and server are applets. What i need to do is send a gif from client to server.I am not alowed to sign a jar archive so i must obay the security manager so I can't read the file that contains the image in order to send the bytes over the netowrk and recreate the image file on the other side.This means that i can only obtain the image like this:
Image img = getImage(getCodeBase(),"img.gif")
How can I work with this?
Please I need help as faster as possible.
I've made a chat. Both client and server are applets. What i need to do is send a gif from client to server.I am not alowed to sign a jar archive so i must obay the security manager so I can't read the file that contains the image in order to send the bytes over the netowrk and recreate the image file on the other side.This means that i can only obtain the image like this:
Image img = getImage(getCodeBase(),"img.gif")
How can I work with this?
Please I need help as faster as possible.