<br>If you tell what the problem is then may be we can help. <br><br>One issue I noticed is you are using csoc.recv(1024) . Which is tooo small for the other file formats. So what u can do is write a loop there to receive the entire data. Basically when u say csoc.recv(1024) It reads only 1024 bytes from the socket and remaining are not read.&nbsp; And use &quot;rb&quot; only for the reading.<br>
<br>And hereafter tell what is the problem in the mail, rather than just saying its not working. It will help us understand the problem.<br><br>regards,<br>Amal.<br><br><div class="gmail_quote">On Wed, Apr 23, 2008 at 12:26 PM, Prajakta Chaudhari &lt;<a href="mailto:pc_3110@yahoo.co.in">pc_3110@yahoo.co.in</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Sir,<br>
<br>
We were suggested your name by a friend of ours in Thadomal Sahani Engineering College. We are students of K. J. Somaiya College of Engineering. We are doing our final year project in Python and need some help.<br>
Our project is : we wanted to transfer all types of files(.txt, .jpg, .mp3, .mpeg and so on) automatically from the phone to our computer using Bluetooth. Whenever our phone comes in the range of the computer Bluetooth dongle, it must update any file, which has been recently updated on the phone, onto the computer. Until now, we have just been able to transfer .txt files over Bluetooth. We are facing problems in transferring other files.<br>

<br>
Our codes are:<br>
<br>
Phone code:<br>
<br>
import sys, socket<br>
host = "11:11:11:11:11:11"<br>
port = 10<br>
file = "E:\\Data\\2.txt"<br>
s = socket.socket(socket.AF_BT, socket.SOCK_STREAM)<br>
s.connect((host, port))<br>
f = open(file, "r")<br>
data = f.read()<br>
f.close()<br>
s.send(data)<br>
s.close()<br>
<br>
Here, for transferring other types of files, we tried using opening the files with read binary; "rb", format. But that approach has not worked.<br>
<br>
Computer code:<br>
<br>
from Bluetooth import *<br>
port =10<br>
backlog = 1<br>
file = "C:\Documents and Settings\sanjay\Desktop\Transfer\File.txt"<br>
host = "11:11:11:11:11:11"<br>
soc = BluetoothSocket(RFCOMM)<br>
soc.bind((host, port))<br>
soc.listen(backlog)<br>
csoc, cinfo &nbsp;= soc.accept()<br>
csoc.recv(1024)<br>
csoc.close()<br>
soc.close()<br>
<br>
Kindly help us out with this problem of ours. Looking forward to your reply.<br>
<br>
Thanking you,<br>
<br>
Yours sincerely,<br>
<br>
Prajakta Chaudhari<br>
Priya Mathur<br>
(K. J. Somaiya College Of Engineering – Electronics and Telecommunication Engineering)<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp;Meet people who discuss and share your passions. Go to <a href="http://in.promos.yahoo.com/groups/bestofyahoo/" target="_blank">http://in.promos.yahoo.com/groups/bestofyahoo/</a><br>
_______________________________________________<br>
BangPypers mailing list<br>
<a href="mailto:BangPypers@python.org">BangPypers@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/bangpypers" target="_blank">http://mail.python.org/mailman/listinfo/bangpypers</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Amal