Re: saving an image to file (with other contents...)
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 17 Sep 2007 02:50:57 GMT
On Sun, 16 Sep 2007 05:58:03 -0700, tiewknvc9 <aotemp@xxxxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :
SO my question is, is there a way to embed the graphics into the save
file? How can I do this? Then how would I grab the file from the
save file when their friends open the file? Is there an example
somewhere online?
With HTML you never embed the file. You save the image an a separate
file, and embed a link to it in the HTML. see
http://mindprod.com/jgloss/pngencoder.html for how you create image
files.
If you create your own file format, you can embed images. You might
do it with a length followed by the binary image, identical to what it
would be as a standalone file. You might then compress the whole
thing, or compress the embedded images.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.
- Follow-Ups:
- Re: saving an image to file (with other contents...)
- From: tiewknvc9
- Re: saving an image to file (with other contents...)
- References:
- saving an image to file (with other contents...)
- From: tiewknvc9
- saving an image to file (with other contents...)
- Prev by Date: Re: Mobile source location
- Next by Date: Re: Building a jar with Ant
- Previous by thread: Re: saving an image to file (with other contents...)
- Next by thread: Re: saving an image to file (with other contents...)
- Index(es):
Relevant Pages
|