FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WINDEV Mobile 2024
→
Sending binary through socket connection
Sending binary through socket connection
Iniciado por Rodrigo Felipe Wiebbelling, 31,may. 2016 21:23 - 3 respuestas
Conéctese…
Rodrigo Felipe Wiebbelling
#1
Publicado el 31,mayo 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?
Informar
0
0
Fabrice Harari
#2
Publicado el 31,mayo 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
Informar
0
0
hectorbadenes
#3
Publicado el 02,junio 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().
Informar
0
0
hectorbadenes
#4
Publicado el 02,junio 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.
Informar
0
0
→ Volver a WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versiones precedentes)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Búsqueda Tipo
Sólo temas
Todos los mensajes
Periodo Buscar
Cualquier fecha
Última hora
Última 24 horas
Última semana
Último mes
Último año
Cancelar
Vista previa del mensaje
Añadiendo una imagen
Importar una imagen desde una URL
Enviar una imagen desde un archivo de su disco
Arrastrar un archivo o click en "Examinar..."
o
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto