You Are Here:

Community: Developer Discussion Boards

#1 Old obex upload without file? - 2005-08-18, 18:18

Join Date: Aug 2005
Posts: 2
anjiro
Offline
Registered User
Is there any way to upload a camera snapshot to a PC via obex without saving the picture to a file first? Currently I'm doing this:

Code:
im = camera.take_photo()
im.save(u'C:\\test.jpg')
bt_obex_send_file(pc_addr, 4, u'C:\\test.jpg')
But it takes about 5 seconds to save the photo. I'd be much happier with something like:

Code:
im = camera.take_photo()
bt_obex_send(pc_addr, 4, im, 'filename.jpg')
Any ideas?


dan
Reply With Quote

#2 Old 2005-08-19, 13:49

Join Date: Dec 2004
Posts: 646
jplauril's Avatar
jplauril
Offline
Forum Nokia Expert
You could try saving the picture to the RAM drive (the D-drive). That should speed things up a bit.
There is no support yet for encoding pictures directly into Python strings.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia