I found this source:
http://croozeus.com/blogs/?p=629
Code:
# Fortune client - PyS60 network programming
# Marcelo Barros de Almeida
# marcelobarrosalmeida@gmail.com
# Supporting Python 1.4.x, 1.9.x
try:
from btsocket import *
except:
from socket import *
HOST = "10.0.0.100"
PORT = 54321
s = socket(AF_INET,SOCK_STREAM)
s.connect((HOST,PORT))
fortune = u""
while True:
data = s.recv(1024)
if not data:
break
fortune += data
s.close()
from appuifw import note
note(fortune,"info")
Let's suppose I send an image from the PC to the cellphone: how can I turn "data" (or "fortune"?) into an image?