Results 1 to 2 of 2
- 06-11-2005, 08:09 AM #1Guest
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
- 06-11-2005, 09:30 AM #2Miguel CruzGuest
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
- LG Lucid
- General Cell Phone Forum
- T-Mobile
- alt.cellular.verizon
- alt.cellular.sprintpcs
How can I decode the VIN of my Volvo?
in Chit Chat