Python Forum
How to transfer a music file, from "Telechargements" into my project
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to transfer a music file, from "Telechargements" into my project
#7
Quote:save in the "uploads",
Since you have some sort of save routine, does it allow you to save to a file on your local computer?
If so, save it as a binary file. You can then read it into your program with something like:
with open('My_file_name_here', 'rb'), as f:
    my_picture = f.read()
Reply


Messages In This Thread
RE: How to transfer a music file, from - by sylas - Sep-02-2017, 01:33 PM
RE: How to transfer a music file, from "Telechargements" into my project - by Larz60+ - Sep-02-2017, 09:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Web project and running a .py file emont 0 642 Dec-11-2022, 11:15 PM
Last Post: emont
  file transfer via python SFTP SCP mg24 3 2,982 Sep-15-2022, 04:20 AM
Last Post: mg24
  Multithreaded file transfer from multiple volumes skoobi 2 1,140 Jul-28-2022, 07:52 AM
Last Post: skoobi
  help with project of reading and searching big log file korenron 6 2,180 Jun-24-2021, 01:57 PM
Last Post: korenron
Question resume file transfer onran 0 1,637 Jan-27-2021, 02:16 PM
Last Post: onran
  Remote File Transfer- Error wonderboy 1 1,678 Jan-06-2021, 11:24 AM
Last Post: wonderboy
  code to read files in folders and transfer the file name, type, date created to excel Divya577 0 1,858 Dec-06-2020, 04:14 PM
Last Post: Divya577
  DNP3 file transfer with python Aussie 0 1,451 Sep-01-2020, 10:45 PM
Last Post: Aussie
  Splitting the audio file into smaller packets before transfer using UDP protocol in p MuhammadAli152 0 3,731 May-15-2020, 03:01 PM
Last Post: MuhammadAli152
  How to stop Xmodem after bin file transfer was finished shaya2103 0 2,505 Nov-27-2019, 04:33 PM
Last Post: shaya2103

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020