FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV Mobile 2024
→
Sending binary through socket connection
Sending binary through socket connection
Débuté par Rodrigo Felipe Wiebbelling, 31 mai 2016 21:23 - 3 réponses
Connectez-vous…
Rodrigo Felipe Wiebbelling
#1
Posté le 31 mai 2016 - 21:23
Hi, I want to send binary messages through socket connection, the idea is send 4 bytes of a integer representing the message size, after that, send the message itself in binary. Anyone knows if that is possible, if yes, how I do that?
Signaler
0
0
Fabrice Harari
#2
Posté le 31 mai 2016 - 22:38
Hi Rodrigo,
the help of socketwrite indicates that you can send a string or a
BUFFER, ie binary information
Best regards
--
Fabrice Harari
Consultant WinDev, WebDev et WinDev Mobile International
Plus d'information sur
http://fabriceharari.com
Signaler
0
0
hectorbadenes
#3
Posté le 02 juin 2016 - 16:46
Load the binary in a Buffer variable, if it is a file use fLoadBuffer(<External file>) to load data, then use SocketWrite() to send it.
In the other side use SocketRead() and fSaveBuffer().
Signaler
0
0
hectorbadenes
#4
Posté le 02 juin 2016 - 17:07
Load the binary into a Buffer variable, if it is a file use fLoadBuffer() to load it, then unse SocketWrite() to send it. In the other side use SocketRead() to retrieve data into a buffer and fSaveBuffer() to create and fill an external file with it.
Signaler
0
0
→ Revenir à WINDEV Mobile 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