Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: OT : New Generator Object - InsertBase64Jpg |
| From: | Mike Chambers |
| Date: | Tue, 22 Aug 2000 16:22:31 +0100 |
Macromedia's insertJpg object insert a jpg. However, the jpg must exist on a
filesystem somewhere in order for the object to be able to use it. Thus you
cannot store the images in a database and then insert them directly into a
Generator template.
My object takes a Base64 encoded jpg and inserts it into template. Base64
encoding simply takes a binary file, and turns it into a regular string. If
you look in the zip file of the object, there is a file called base64.txt.
If you open it is just a string a characters. However, if you decode those
characters, it is actually an image of some book.
What does this mean exactly?
Well it allows you to do two main things:
1. You can now store your images in a database and have Generator get them
directly from the data base.
2. You could pass the actual image to Generator through the URL query
string. This is much faster than passing a path to an image and then having
Generator go to the file system to load the image.
As it stands right now this will only work with jpgs, and thus is not as
useful as it could potentially be. While the object certainly works as
advertised, I released it mainly to show how to create a simple object and
use some of the methods of the Generator SDK.
Hope that helps. Let me know if you have any more questions.
Mike Chambers
mesh
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email help
Replies
FLASH: very nice flash site : http://air, Lamont, Sarah
FLASH: OT : New Generator Object - Inser, Mike Chambers
Re: FLASH: OT : New Generator Object - I, Ulrich Sinn
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

