Good day,
I try to load images from a method call with the UNC. The images folder is
not into web folder...
Here is my method in 4d v 11.8 (90426) in french: (Method name:
charger_image)
`Start method******************************************
`getImage($inParams)
C_TEXTE($1)
C_IMAGE($0)
C_BLOB($vlBlob)
C_IMAGE($vlTest)
DOCUMENT VERS BLOB($1;$vlBlob)
BLOB VERS IMAGE($vlBlob;$vlTest;"image/jpg)"
$0:=$vlTest
`End methode*******************************************
Here is the call within web page: Ive done it both way in case... Not
working...
$qry := build query string(""; "charger_image"; "img.getImage"; "param";
[Photo]Chemin_Reseau)
%>
<img src="/image.a4d<%=$qry%>" alt="image" />
<%
write('<center><IMG SRC="')
Write('"/image.a4d')
write($qry)
write('" alt="image"')
write('" TITLE="Photos"></center>')
He is what contain [Photo]Chemin_Reseau (with underscores...) :
[Photo]Chemin_Reseau=UNC= example:
\\Srv-webrole\WebRole\Photo\08053\C08053M0010-05-0297B___L____F___A01P003.JP
G
Here is the source of the web page not displaying the image:
<img
src="/image.a4d?charger_image=img.getImage;param=%5C%5CSRV-WEBROLE%5CWebRole
%5CPhoto%5C08053%5CC08053M0211-48-6436B___L____F___A01P010.jpg" alt="image"
/>
<center><IMG
SRC=""/image.a4d?charger_image=img.getImage;param=%5C%5CSRV-WEBROLE%5CWebRol
e%5CPhoto%5C08053%5CC08053M0211-48-6436B___L____F___A01P010.jpg"
alt="image"" TITLE="Photos">
Any clue why its not working?
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/