Android Question multipart vs httpserver library

kostefar

Active Member
Licensed User
Longtime User
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!
 

kostefar

Active Member
Licensed User
Longtime User
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.

Thanks Erel, maybe FTP could be used then?
 
Upvote 0
Top