Saving JPG without External Components, PURE PHP!

i made a thing with flash 8 to take an image from the webcam and save it, but NOT USING PHP!!! the image is not saved in JPG format, is saved in NIM format, i invented that bicouse my server dont have the image component of php to create images, so i invent this way to save pictures to files, look!

if you have a better way of doing this, please let me know, realy.

here is the link, you have to have a webcam: http://grupoapis.com.ar/jpv/flash8/

the file taken from the webcam is 40 Kb aprox. So is not the most efficient way of saving images, but take a look!!

takes a wile in upload.

NOTE: it dosent have a preloader!