A service or a server, not B4J server, is accepting the ff. HTTP PUT command.
I tried the sample provided by the link below to implement it in B4A, but I can't get it run.
[Server] Upload files from your B4A app to your B4J server over the internet | B4X Programming Forum
It seems the problem is to get the path to the file. Can someone provide me a sample code how the above should be implemented in B4A? In the example provided by the above link, the command used to upload a file is j.PutBytes but I think based on the other examples I searched here, the PUT is equivalent to j.PutString in B4X and what is being upload here is a binary.
I am getting the image from the android using the ContentChooser and I think this where the problem occurs and how to transfer it using the PUT command.
Thanks!!!
B4X:
curl -vX PUT http://admin:password@127.0.0.1:5984/albums/6e1295ed6c29495e54cc05947f18c8af/artwork.jpg?rev=2-2739352689 --data-binary @artwork.jpg -H "Content-Type:image/jpg"
I tried the sample provided by the link below to implement it in B4A, but I can't get it run.
[Server] Upload files from your B4A app to your B4J server over the internet | B4X Programming Forum
It seems the problem is to get the path to the file. Can someone provide me a sample code how the above should be implemented in B4A? In the example provided by the above link, the command used to upload a file is j.PutBytes but I think based on the other examples I searched here, the PUT is equivalent to j.PutString in B4X and what is being upload here is a binary.
I am getting the image from the android using the ContentChooser and I think this where the problem occurs and how to transfer it using the PUT command.
Thanks!!!