×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    11

    the picture I received not the same as the picture itself

    Hi,all:

    I go through all the document provided by the FAQ,and I test the example too,it sent the picture message successfully,yet when I send a picture message of myself,I received the picture,but it displayed not the same as itself,the dex image header and image code as follows:

    the first part:
    0B0504158A00000003010301300000045465737402010000480e0147494638396148000E00800000FFFFFF00000021F90401000000002C0000000048000E000002FF848F181041090082E0636A52FC23F898AA011407C0008062137CA4D800700614133EA62E0425018800A004001004DF02238C624340107C4C5D084A40F103E020087E404418C50F808020
    the second part:
    0B0504158A00000003010302F898BA10840022028280444098999120110001140720083EA6EE05210880882024010041F0E3220228060440107CCC8B004A081F03C282E0448485999100111100840082E063044410EC008A4DF02F202C0866FC20F8143F00208010C2BF008A0D007017041F212C9062137CA3D80000018410FE51FC0000C023F86801911413
    the third part:
    0B0504158A000000030103033E4604020521F848F18360536C828F18919999484CF868149BE0434420220212C2C7D48B5D2031E15F20221A85F02D10029142F8981116AAAA872408826F149BE05B2022229202003B
    the content include two parts,one part is text:test,the other part is picture:width:72 height:14.type:gif .the first header as follows:
    0B0504158A00000003010301300000045465737402010000480e01
    the second and the third header as follows:
    0B0504158A00000003010302
    0B0504158A00000003010303

    the success example(from 'Smart Messaging FAQ 16') as follows:

    the first part:
    0B0504158A00000003010301300000045465737402010000481C01666666666666666666999999999999999999800000000000000001400000006000E000024000000E900310000280000031080CF3B801800000400411044401400000FFFE2F8B12024000000000538CAA0280000000006289C4018000000000414140014000000000014280024000200000
    the second part:
    0B0504158A00000003010302014280028001F0000000A28001800FFE000000A500015FFFFFFFFFFEA57FFA400AAA0000005500028201500440015D08A1881024800040FF0201404100010003ABE00244000008200D55588280101440001AAAAC0180000000003555560140010000806AAAAB0240000000005555550280000000000000000199999999999999
    the third part:
    0B0504158A000000030103039999666666666666666666

    on the side,I test the others type,for exampleperator logo message,CLI,vCard,as a result,I meet the same question!

    waiting for yours answers! thanks

    cellin

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    11

    RE: the picture I received not the same as the picture itself

    why nobody would give me a big favor! I look forward to yours help!

    cellin

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    474

    RE: the picture I received not the same as the picture itself

    Look thru FAQ #16 and *understand* the significance of all the bytes when creating your own trials. For instance from you trial:

    0454657374020100480e01
    04 = length of text, 54657374 = "test", 02=OTA bitmap, 0100=length of said bitmap, 00480e01 = first 4 bytes of said OTA bitmap (although actually these are just header bytes). From the first 4 bytes I can see that the picture you want to send is 48x0E (or 72x14) pixels, and therefore should take 126 bytes (7Eh) to represent. However you stated in 0100 that the size was 252 bytes (0100h, minus 4 header bytes = FCh). There may be other things wrong, but that's the first one I saw.

    -paul / ForumNokia

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    5

    RE: the picture I received not the same as the picture itself

    use .bmp file, and try again.

  5. #5
    Registered User
    Join Date
    Mar 2003
    Posts
    11

    RE: the picture I received not the same as the picture itself

    First of all,thanks a lot,paul.
    As you said,there may be other things wrong.I think that the image hex code may be wrong.for the above you told me,the image hex code length should if one of FCh and 7Eh.yet my picture hex code is more long than it.
    in my program,I use the fread() function to read the image and use the bin2hex()function to get the hex code.the code as follows:
    <?php
    $filename = "sms_pictures/Nokia/003.gif";
    $fd = fopen ($filename, "r"

    $contents = fread ($fd, filesize ($filename));
    $contents = strtoupper(bin2hex($contents));
    ?>
    on the other hand,the image property:length:423byte width:72 height:14 and so on.

    thanks again.
    cellin

Posting Permissions

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