Cpnverting gif to code

I want the gif to be part of the code...Please help!!!!!!!!!!!!!!!!
[81 byte] By [8infinity] at [2007-9-26 4:13:05]
# 1
What do you mean with "to be part of the code..."?
edosoft at 2007-6-29 13:19:31 > top of Java-index,Archived Forums,Java Programming...
# 2
Sorry for the poorly written request. What i wanted to know was if it was possible to include a gif inside a *.java file. This way a web browser would not download the applet gifs as a separat entity...
8infinity at 2007-6-29 13:19:31 > top of Java-index,Archived Forums,Java Programming...
# 3
Thats a really dumb idea. If you want to program like that learn basic
kaze0 at 2007-6-29 13:19:31 > top of Java-index,Archived Forums,Java Programming...
# 4
You can put other files in jar. That is what jars are for - tranfering multiple files as one unit. That will also download faster than getting each file seperately.
smh3r at 2007-6-29 13:19:31 > top of Java-index,Archived Forums,Java Programming...
# 5

> Thats a really dumb idea. If you want to program like

> that learn basic

That's a really dumb response. There are tons of reasons for doing what he wants to do.

I'm curious: hwo would you go about doing this in VB? It is certainly not a trivial thing to do, in fact, it is easier to do in Visual C++...

gmagana at 2007-6-29 13:19:31 > top of Java-index,Archived Forums,Java Programming...
# 6

> Sorry for the poorly written request. What i wanted

> to know was if it was possible to include a gif inside

> a *.java file

I did something like this in a DOS program a very long time ago.

Basically you could write a program to read a GIF file, create a java class, and put the GIF data into a byte array. This way you have a single file that includes the binary info of the GIF without making the GIF a separate file.

You would also need to write some code to display the GIF from the byte array.

gmagana at 2007-6-29 13:19:31 > top of Java-index,Archived Forums,Java Programming...