base64encode and jpg problem

Eric Chatonet eric.chatonet at sosmartsoftware.com
Wed Jun 6 08:17:29 EDT 2007


Hi Nicolas,

Images are binaries: use 'binfile' instead of 'file'.

Le 6 juin 07 à 14:13, Nicolas Cueto a écrit :

> I can't figure out why the following doesn't work:
>
> put (base64encode(URL "file:img/000.jpg")) into URL "file:img/000.if5"
> ...
> put (base64decode(URL "file:img/000.if5")) into URL
> "file:img/000new.jpg"
>
> The files "000.if5" and "000new.jpg" are created,
> and "000.jpg" and "000new.jpg" are the same size,
> but "000new.jpg" doesn't display.
>
> Thank you.
>
> --
> Nicolas Cueto

Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: eric.chatonet at sosmartsoftware.com/
----------------------------------------------------------------





More information about the use-livecode mailing list