bug sur l affichage d une photo en jpeg

Hello,

I try to display a picture image1.jpeg who is situed in /opt/ejabberd1.1.3/doc/
But when I do :

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
process_admin(Host,
#request{us = US,
path = ["image1.jpeg"],
q = Query,
lang = Lang} = Request) ->
io:format("hello world", []),
{200, [{"Content-Type", "image/jpeg"}],get_photo_admin() };
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

with the method:
%%%%%%%%%%%%%%%%%%%%%
get_photo_admin() ->
jlib:decode_base64("/opt/ejabberd-1.1.3/doc/image1.jpeg").
%%%%%%%%%%%%%%%%%%%%%

I canĀ“t see my picture, however if I do the same with the binary code of the picture, I see my picture...

could you help my please.
Paul

Syndicate content