Dear All,
So I used this great multipart example example made by DonManfred to upload large amounts of data. It works very well indeed, but now I have a problem getting the data back again from the server they were uploaded to.
I built a script in PHP that will jsonencode various items; username, timestamp and also the images that are the previously mentioned large amounts of data, base64 encoded.
This works always with retrieving one image, sometimes with two images, and never with three images. That generates an Internal Server Error, so obviously there´s a limit somewhere that I´m crossing.
It all comes back as one big URL, and that´s why I base64 encoded it in the php script. This is not very efficient, so I´m looking into how I can change the code - both on b4a and php sides - to send raw bytes instead of the clumsy way I´m doing it now.
Any suggestions?
Thanks in advance!
So I used this great multipart example example made by DonManfred to upload large amounts of data. It works very well indeed, but now I have a problem getting the data back again from the server they were uploaded to.
I built a script in PHP that will jsonencode various items; username, timestamp and also the images that are the previously mentioned large amounts of data, base64 encoded.
This works always with retrieving one image, sometimes with two images, and never with three images. That generates an Internal Server Error, so obviously there´s a limit somewhere that I´m crossing.
It all comes back as one big URL, and that´s why I base64 encoded it in the php script. This is not very efficient, so I´m looking into how I can change the code - both on b4a and php sides - to send raw bytes instead of the clumsy way I´m doing it now.
Any suggestions?
Thanks in advance!