FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
[WD18] How to include a pdf file in a XML file.
[WD18] How to include a pdf file in a XML file.
Débuté par Gianni Spano, 23 mai 2015 23:00 - 2 réponses
Connectez-vous…
Gianni Spano
#1
Posté le 23 mai 2015 - 23:00
Hello to All
I need to include a pdf file (or other file type ie. gif, tiff,jpg) in a XML file as an attachment.
The pdf file must be included in "xs:base64binary" format.
Pls, who want to explain me in details what do i need to do this operation??
Is there some function that i don't know in Windev?
Example are welcome.
Thanks in advance
Gianni
Signaler
0
0
Fabrice Harari
#2
Posté le 24 mai 2015 - 00:53
Hi Gianni
if I remember correctly, the crypt function has a mode that give base64 as a result (see help for details)... So you load your binary file in a buffer, use crypt tp generate a string in base64, then add that string at the appropriate place in your xml file
Best regards
Signaler
0
0
Gianni Spano
#3
Posté le 24 mai 2015 - 11:45
Hi Fabrice
Yes...This is the solution i thought.
After my post i found the "fcrypt" function that do the trick.
I did a little test and the file can be "attached" in the XML file...
Thanks
Gianni
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte