K kostefar Active Member Licensed User Longtime User Jan 26, 2017 #1 Dear All, I´m using a host that limits URL sizes to 8 kbyte, hence I would need to use multipart messages for anything larger than that when uploading via php to a mysql database. I´m considering using the httpserver library instead, so that in the php script, there´ll be an instruction to retrieve file from URL locally available on the android device, http://xxx.xxx.xxx.xxx/image.jpg and store it in the database. Are there any dis/advantages anyone could think of in one method over/under the other? Thanks in advance!
Dear All, I´m using a host that limits URL sizes to 8 kbyte, hence I would need to use multipart messages for anything larger than that when uploading via php to a mysql database. I´m considering using the httpserver library instead, so that in the php script, there´ll be an instruction to retrieve file from URL locally available on the android device, http://xxx.xxx.xxx.xxx/image.jpg and store it in the database. Are there any dis/advantages anyone could think of in one method over/under the other? Thanks in advance!
Erel B4X founder Staff member Licensed User Longtime User Jan 26, 2017 #2 The http server library will not help as the device is not open for incoming connections unless it is connected to a local network and configured properly. Creating a multipart request is less efficient and more complicated compared to a regular POST request. Upvote 0
The http server library will not help as the device is not open for incoming connections unless it is connected to a local network and configured properly. Creating a multipart request is less efficient and more complicated compared to a regular POST request.
K kostefar Active Member Licensed User Longtime User Jan 26, 2017 #3 Erel said: The http server library will not help as the device is not open for incoming connections unless it is connected to a local network and configured properly. Creating a multipart request is less efficient and more complicated compared to a regular POST request. Click to expand... Thanks Erel, maybe FTP could be used then? Upvote 0
Erel said: The http server library will not help as the device is not open for incoming connections unless it is connected to a local network and configured properly. Creating a multipart request is less efficient and more complicated compared to a regular POST request. Click to expand... Thanks Erel, maybe FTP could be used then?
Erel B4X founder Staff member Licensed User Longtime User Jan 26, 2017 #4 If your server supports FTP then FTP is a good option. Upvote 0
K kostefar Active Member Licensed User Longtime User Jan 26, 2017 #5 Erel said: If your server supports FTP then FTP is a good option. Click to expand... Cheers, I´ll look into that! Upvote 0
Erel said: If your server supports FTP then FTP is a good option. Click to expand... Cheers, I´ll look into that!