Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sending images #99

Closed
ruanblima opened this issue Feb 26, 2021 · 4 comments
Closed

sending images #99

ruanblima opened this issue Feb 26, 2021 · 4 comments
Labels
question Question about any part of the module

Comments

@ruanblima
Copy link

Description

How can I send an image?
I tried to send it as base64, but the data does not arrive complete on the server, is it necessary to do some configuration to allow the sending of a larger data?

@ruanblima ruanblima added the bug Something isn't working label Feb 26, 2021
@Rapsssito
Copy link
Owner

@ruanblima, I am sorry, but if the image is too big, you might encounter problems. Check #78 for more info. In the meantime, you can create chunks out of your image and use the callback argument provided to socket.write() to space out the shipment.

@ruanblima
Copy link
Author

@ruanblima , sinto muito, mas se a imagem for muito grande, você pode encontrar problemas. Verifique o nº 78 para obter mais informações. Nesse ínterim, você pode criar pedaços de sua imagem e usar o argumento de retorno de chamada fornecido para socket.write()para espaçar a remessa.

Thank you very much for the tip, I will look at this question that you asked. Would you have another lib to indicate that I could be sending a larger image? my image is about 200kb, and I need to send it via socket.

@Rapsssito
Copy link
Owner

@ruanblima, I don't know any other library for larger images. I am working on a fix, as commented in #78 (using the drain event). Take a look at questions on StackOverflow about your problem using NodeJS net API, it should also work in this library.

@ruanblima
Copy link
Author

@ruanblima , não conheço nenhuma outra biblioteca para imagens maiores. Estou trabalhando em uma correção, comentado em # 78 (usando o drainevento). Dê uma olhada nas perguntas no StackOverflow sobre seu problema ao usar uma API de rede NodeJS, ela também deve funcionar nesta biblioteca.

Okay, thank you very much for the feedback.

@Rapsssito Rapsssito added question Question about any part of the module and removed bug Something isn't working labels Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question about any part of the module
Projects
None yet
Development

No branches or pull requests

2 participants