| Reply | « Previous Thread | Next Thread » |
|
I have successfully established a connection already between two mobile phones. This way I am able to send text.
For the server, the code looks like that: Code:
server = socket.socket(socket.AF_BT, socket.SOCK_STREAM)
channel = socket.bt_rfcomm_get_available_server_channel(server)
server.bind(("", channel))
server.listen(1)
socket.bt_advertise_service(unicode(SERVICE_NAME), server, True, socket.RFCOMM)
socket.set_security(server, socket.AUTH | socket.AUTHOR)
conn, client_addr = server.accept()
fd = conn.makefile("rw", 0)
What I'd like to do is send an image. I don't want to use bt_obex_send_file because it requires the user to accept the file first although he already accepted the connection request earlier. 1- Is there some way to send the image via the already set up connection? 2- If not, is it possible to use bt_obex_send_file silently, without bothering the user? If yes, how do I do that and where are the received files stored? Note: The mobile phones are not necessarily paired devices. Any thoughts? |
|
Like you just said: pairing devices removes those dialogs and just moves the file(s). Without pairing I don't think it's possible?
Sorry, --jouni |
|
Isn't there some way to convert the Image to text format and send it from one end, and then receive the text and parse it back to an image on the other end?
Btw, regarding sending a file using obex, where does the file go to (the disk location) on the destination phone? |
|
Quote:
As Jouni already quoted, the bluetooth transfer on devices which are not paired cannot take place without the Dialog box approval on the client device. However, if the devices are paired and authorized to receive data from the other without approval then the dialogbox would not appear. Best Regards, Croozeus |
|
Quote:
Quote:
|
|
Quote:
Quote:
Best Regards, Croozeus |
|
Quote:
Cheers, --jouni |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Send and Receive a File with Bluetooth | gerardo.rossi | Bluetooth Technology | 3 | 2008-07-11 19:28 |
| DRM for sending jar file via Bluetooth | yogesh.bhople | Installation, Certification and Security | 0 | 2007-03-15 13:14 |
| SEND FILE WITH BLUETOOTH using RFCOMM | Mich2424 | Symbian Networking & Messaging | 0 | 2006-01-18 17:54 |
| Send file via Bluetooth? | sblider | General Symbian C++ | 1 | 2003-02-16 00:56 |
| Easiest way to send a file over Bluetooth on 7650? | MentalBlank | Bluetooth Technology | 1 | 2002-07-11 07:42 |