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
#1
my question here: Hi all! In my project, every time I load a music or an image it drops in my directory "Telechargements". But I should like it drops in my project. What shall I do ? Thanks
Reply
#2
(Sep-02-2017, 01:15 PM)sylas Wrote: What shall I do ?

Thou shalt post thy code that thee has so far.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#3
Not correct image.
Reply
#4
That's not code!
Reply
#5
The picture is not complete.
Please post code as text and not encoded in base64 as picture where more of the half data is missing because the message is too long.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply
#6
I am on a project(game) with about 40 files. As I load a music, I save in the "uploads", but there, it is of no use for me. I must do something to transfer it in my project. Can you help me ? The screenshot was tried in order to show you my project. Within C++ , I knew how to . With our python forum I don't. Thanks for your reply.
Reply
#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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Web project and running a .py file emont 0 620 Dec-11-2022, 11:15 PM
Last Post: emont
  file transfer via python SFTP SCP mg24 3 2,875 Sep-15-2022, 04:20 AM
Last Post: mg24
  Multithreaded file transfer from multiple volumes skoobi 2 1,105 Jul-28-2022, 07:52 AM
Last Post: skoobi
  help with project of reading and searching big log file korenron 6 2,123 Jun-24-2021, 01:57 PM
Last Post: korenron
Question resume file transfer onran 0 1,614 Jan-27-2021, 02:16 PM
Last Post: onran
  Remote File Transfer- Error wonderboy 1 1,653 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,835 Dec-06-2020, 04:14 PM
Last Post: Divya577
  DNP3 file transfer with python Aussie 0 1,417 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,646 May-15-2020, 03:01 PM
Last Post: MuhammadAli152
  How to stop Xmodem after bin file transfer was finished shaya2103 0 2,477 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