Re: saving an image to file (with other contents...)



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
.



Relevant Pages

  • Re: compress data for dynamic tables
    ... In regard to bandwidth, the data is compressed on the wire anyway, ... Write the same table as HTML and also as an array ... Now what I want to do is compress the data so that say, ... I would be very surprised if any browser could reconstruct a table from ...
    (comp.lang.javascript)
  • Re: hitting the limits
    ... You can write perfectly good xml or html without obstart. ... There's much less overhead. ... What I do is for any user that is not logged-in, I compress the page getting rid of the 1000s of spaces and tabs. ...
    (comp.lang.php)
  • Re: hitting the limits
    ... You can write perfectly good xml or html without obstart. ... There's much less overhead. ... What I do is for any user that is not logged-in, I compress the page getting ... output, parse it, getting rid of the extra tags, then print it. ...
    (comp.lang.php)
  • file($url) problem - fulling server into thinking youre a web browser
    ... those pages that displays "Please update your browser. ... When I try to use PHP filefunction to grab the HTML, my request ...
    (comp.lang.php)
  • Re: Suppress viewstate __viewstate rendering
    ... I was afraid you were going to say that;) I'm not sure of a way to grab ... I don't know that the HTML of the page can be ... > make up a timesheet entry/report page. ... >>> empty, so the HTML renders ...
    (microsoft.public.dotnet.framework.aspnet)