×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Nov 2003
    Posts
    17

    Image transfer via bluetooth

    Hi guys!

    I was wondering if it's possible to send a png image from one phone to another via bluetooth (JSR-82). I've tried sending Strings and worked fine.

    thanks!

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Posts
    1,212
    Basically it should work. You don't necessarily need OBEX to send files. However, sending files over RFCOMM or L2CAP may need some extra work.

    -seppo
    Forum Nokia

  3. #3
    Registered User
    Join Date
    Nov 2003
    Posts
    17
    Thanks seppo_fn!

    Another question though.. what kind of 'extra work' do you mean? and when i'm going to send the image over the air, what data type should the image be (blog or still png)? Thanks again!

  4. #4
    Registered User
    Join Date
    Dec 2003
    Location
    Düsseldorf, Germany
    Posts
    15

    picturetranfer via jsr 82

    I chosed a byte[]-Array via DataInput-/Output-Stream and it works fine.
    After making the connection I transferred at first the Array-size with writeInt/readInt (or sim.) and than the byte-Stream with adequate functions ...

    When you want to work with pics from the jar you can read them as byte[].
    Also there is no problem with cam-pics: They normally came as byte-Stream (<-videoControl)
    Transfer with Image.creatImage ....

  5. #5
    Registered User
    Join Date
    Nov 2003
    Posts
    17
    ok. i'll try this. thanks!

  6. #6
    Registered User
    Join Date
    Jan 2004
    Posts
    25
    Hi,

    i know this is probably a bit basic, but how do you change the png image to a byte array? could you apply this to any object, i.e. is it possible to send any object over RFCOMM and L2CAP? could you incluce some sample code please schnejan??

    thanks

Posting Permissions

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