[AWS] Re: AWS ..

Pascal Obry p.obry@wanadoo.fr
Sun, 6 Apr 2003 21:50:24 +0200


Patrice,

 > pour =EAtre plus exact, je cree en m=E9moire, un JPEG en utilisant l=
a jpeg lib,=20
 > puis je stocke ce JPEG dans un tableau de Byte, dont la d=E9finition=
 est la=20
 > suivante  :
 >=20
 >   subtype B is Ada.Streams.Stream=5FElement range 0..255;
 >    type Byte=5FArray is array(Natural range <>) of B;
 >=20
 >=20
 > puis depuis la routine principale, j'utilise la fonction build Ainsi=
 :
 >=20
 >   return AWS.Response.Build("application/toto",   Catalog.Get=5FThum=
bnail(I) )=20
 >=20
 > dans le content Type, j'ai essay=E9, image/jpeg, puis cela ne donnai=
t rien,=20
 > j'ai essay=E9 application/toto pour permettre de sauvegarder le flux=
 =E0 partir=20
 > du navigateur pour voir ce qu'il recevait,=20
 > En faisant un "Save As .." j'obtiens toujours un fichier vide =3F=3F=
=3F
 >=20
 > Hope this help.
 >=20
 > J'essaye de passer =E0 AWS-1.3.

This should work with AWS 1.3. If it does not please try to reproduce t=
he
problem with a small example and post the code.

Thanks,
Pascal.

--=20

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|         http://perso.wanadoo.fr/pascal.obry
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595