Click here to Skip to main content
15,881,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have installed filezilla server on my laptop and also added pi as a user. raspberry pi took the photo but was not received by laptop.

What I have tried:

installed filezilla server on laptop and coded a code (in python) on raspberry pi
Raspberry pi Code:
import ftplib
import picamera
from time import sleep

# Taking Image
camera= picamera.PiCamera()
camera.capture('image1.jpg')
session=ftplib.FTP('PC ip','bebe','1111') #PC ip means windows pc ip
file = open('/home/pi/image1.jpg','rb')
session.storbinary('STOR image.jpg',file)
file.close()
session.quit()
Posted
Updated 20-Jun-19 19:38pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900