Results 1 to 2 of 2
  1. #1
    Hi all,

    I'm trying to send a forward-lock message from PHP using the following
    code:

    header("Content-type: application/vnd.oma.drm.message;
    boundary=boundary-1");
    print("--boundary-1\n");
    print("Content-type: audio/midi\n");
    print("Content-Transfer-Encoding: binary\n");
    print("\n");
    fpassthru(fopen("test.mid", "rb"));
    print("\n--boundary-1--\n");

    It works fine in the Openwave Phone Simulator, I can even play the midi
    file! However, on both a Nokia 6230 and a SonyEricsson K500i, both of
    which have forward locking support, I get a "file corrupted" error
    message.

    Any idea what I'm doing wrong?

    Thanks in advance,

    Rob




    See More: Sending a forward-lock message from PHP




  2. #2
    Miguel Cruz
    Guest

    Re: Sending a forward-lock message from PHP

    <[email protected]> wrote:
    > print("Content-Transfer-Encoding: binary\n");
    > fpassthru(fopen("test.mid", "rb"));
    >
    > It works fine in the Openwave Phone Simulator, I can even play the midi
    > file! However, on both a Nokia 6230 and a SonyEricsson K500i, both of
    > which have forward locking support, I get a "file corrupted" error
    > message. Any idea what I'm doing wrong?


    You may have better luck with base64 encoding.

    miguel
    --
    Hit The Road! Photos from 36 countries on 5 continents: http://travel.u.nu
    Latest photos: Queens Day in Amsterdam; the Grand Canyon; Amman, Jordan



  • Similar Threads