Looking for example codes on how to send images from Raspberry pi to a web server via wifi. i am really new to raspberry pi and there's already a tomcat server. I really need your help
I am sure that both hosts have SSH installed so another solution could be to use SCP/SFTP. If not, try to use a regular FTP client.
For example on your RaspberryPi:
scp /path/to/your/imag.jpg YourUser@Webserver:/path/to/destination/
Make sure that
YourUser has permissions to write in your destination directory.
If you want to upload a directory don't forget to pass the
More information about using scp can be found here:
That one is really easy.
You should read some tutorials about UNIX.
Use the wget command to upload or download stuff with web servers.
The basic syntax of this command is
This would download the file into your working directory (meaning you'd have to do this from webserver to raspberry)
Here is a basic tutorial for wget:
Another strong program is curl
It would look like
curl -O -C - file:///path/to/some/file
This is really a trivial feature of every linux system nowadays, and I guess with the 2 links I posted you should be able to fiddle something together. (If not try watching a youtube video to these programs)
I hope you can manage it