View previous topic :: View next topic |
Author |
Message |
balistof Guest
|
Posted: Tue Mar 22, 2005 3:48 pm Post subject: mmslib Encoder |
|
|
Hi!
I just found your inspirational MMS Encoder/Decoder... I tried it out in various environments.
But there is always an error when I try to add text files as a part of the MMS...
For example I add:
Quote: |
$enc->addPart( "image/jpeg", "content/part_0.jpg" );
$enc->addPart( "audio/midi", "content/my_melody.mid" );
$enc->addPart( "audio/amr", "content/part_1.amr" );
$enc->addPart( "audio/amr", "content/part_1.amr" );
$enc->addPart( "audio/imy", "content/part_1.imy" );
$enc->addPart( "text/plain", "content/text.txt" );
|
then the last part (the text part) produces following strange content type when decoding the .mms file:
Quote: |
Content-type: GÆ’udio/imy
|
It only happens when I try to add text files. I have never got these error when composing MMS with binary files...
Does anyone have some ideas or hints?
Thanks,
balistof |
|
Back to top |
|
|
Peffis Site Admin
Joined: 09 Sep 2003 Posts: 324 Location: Sweden
|
Posted: Wed Mar 23, 2005 3:34 pm Post subject: |
|
|
Do you run this on a Windows platform or some Unix? I don't remember really if I ever tested text-files. There are others who have reported problems with text though so there is probably some problem there. All content-types are handled the same way though...which might be the problem perhaps. |
|
Back to top |
|
|
balistof Guest
|
Posted: Wed Mar 23, 2005 5:02 pm Post subject: |
|
|
I'm developing under windows but the web server is a linux machine...
On both OS the same problems occur...
Quote: | All content-types are handled the same way though...which might be the problem perhaps
|
I also think that there must be the probleme. Any idea why this can happen?
I'm really interested in using this Encode and I'm currently thinking about developing a MMS Encoder in PHP which might be useful (I do not find an Encoder available on the net...). So it would be nice if I can take your approach as a base and start from there instead of starting form scratch! |
|
Back to top |
|
|
Peffis Site Admin
Joined: 09 Sep 2003 Posts: 324 Location: Sweden
|
Posted: Tue Mar 29, 2005 3:13 pm Post subject: |
|
|
No I don't know. It would probably be apparent if you look at what it actually does when the content type is text and what the outcome is in the file. I don't have the time to do any such testing and development right now though.
But go ahead to use the code and develop it further if you like as long as you follow the GPL. That's what GPL is all about - sharing and building on what others have made. |
|
Back to top |
|
|
|