How to send binary data to HTTP POST server?

Code tips and tricks for beginners
Post Reply
yb0kli
Posts: 19
Joined: Tue Dec 27, 2022 9:05 am
Has thanked: 3 times
Been thanked: 4 times

How to send binary data to HTTP POST server?

Post by yb0kli »

Hi, I'm new to Annex32 and I found it is a fantastic work of art which I delighted to learn more. I learned good old days BASIC language several decades ago and I feel a nostalgic when I see Annex32 first time appeared on my browser :lol:

During my learning, I have a problem on how to send a binary data, i.e. image file taken from camera.picture() to a web API with HTTP POST method. The string variable seems can't handle NULL character, but I can't use IObuff for wpost$(). CMIIW.

Is there a way so we can send binary data to HTTP POST service?

Appreciate all the hints. Thank you :D
Last edited by yb0kli on Fri Aug 11, 2023 3:49 pm, edited 1 time in total.
User avatar
cicciocb
Site Admin
Posts: 2020
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 432 times
Been thanked: 1339 times
Contact:

Re: How to send binary data to HTTP POST server?

Post by cicciocb »

HI and welcome to the group.
No, actually is not possible to send binary data to server but I plan to implement this feature, probably using IOBUFFERS
yb0kli
Posts: 19
Joined: Tue Dec 27, 2022 9:05 am
Has thanked: 3 times
Been thanked: 4 times

Re: How to send binary data to HTTP POST server?

Post by yb0kli »

Thank you for letting me know this fact, and I'll wait for the new feature to be implemented.
Post Reply