PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV Mobile 2024 → [WM23] Socket
[WM23] Socket
Iniciado por ARV, jan., 28 2019 6:08 PM - Sem resposta
Membro registado
514 mensagems
Publicado em janeiro, 28 2019 - 6:08 PM
Hi all

I was wondering about something.
I want to print an image with a bluetooth printer on Android device.
I could print text with some functions with sockets.

Now I want to print images, I was searching codes for java but I couldn't get it working, and for some reason I end up reading something about dSaveImagePNG, on that it say something about save the image in memory, with this I get a buffer of the image I want, also say that I could use it with the sockets function

I was thinking if I can send this buffer with my socketWrite function, but I'm not sure if it's going to print my image or only what it gets on the buffer

here's the thread of what I could use to print with sockets on a print connected in bluetooth:
https://forum.pcsoft.fr/fr-FR/pcsoft.br.windev/1398-imprimir-mobile-print-from-mobile/read.awp

and this is the code I was thinking to use to get the buffer and then use it on my SocketWrite function:
https://doc.pcsoft.fr/en-US/?3029027


someone can tell me if this could work?
PD: I don't have a printer at the moment so I can't tell.

--
Best Regards
ARV