MMS using VB | Search |
NowSMS Support Forums ⬆ NowSMS Support - MMS & Advanced Issues ⬆ Archive through July 14, 2004 ⬆ |
◄ ► |
Author | Message | |||
Philip Fagan New member Username: En1gma Post Number: 2 Registered: 02-2004 |
Is there any way of capturing a .jpeg image using VB6 and then sending it through my nokia phone and data cable,using nowsms?? | |||
hhhhhhhhhhhhh Unregistered guest |
| |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 2038 Registered: 10-2002 |
Hi Philip, Sorry I've been running a bit behind on discussion board replies over the past two weeks, and I've missed quite a few messages in the process. Unfortunately, I don't have any VB examples. Submitting an MMS message is more complex than submitting an SMS, because you have to transfer the content of images and other content. Submitting an MMS requires that you use HTTP POST instead of HTTP GET. Unless you store the components of the MMS message on another web server in which case you can send NowSMS an HTTP GET request that includes references to the HTTP URLs to fetch that include the MMS message components. This is described at the "raw HTTP level" in the following link: http://www.nowsms.com/documentation/ProductDocumentation/mms_notifications_and_c ontent/Submitting_MMS_Messages_URL.htm For an example in Java, see: http://support.nowsms.com/discus/messages/485/1360.html For an example in PHP, see: http://support.nowsms.com/discus/messages/1/1113.html Unfortunately, I know very little about VB, but I think you could do the HTTP transaction using "Msxml2.XMLHTTP" or "WinHttp.WinHttpRequest.5". I've got a simple JScript example that can be used for submitting an SMS at the following link: http://support.nowsms.com/discus/messages/12/1227.html These same objects should be accessible via VB. | |||
Marcelo Muzilli New member Username: Muzilli Post Number: 3 Registered: 03-2004 |
Bryce, the GIF picture format is the only type to send to my phone? TIA, Marcelo | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 2060 Registered: 10-2002 |
No, most of the colour phones support both GIF and JPEG (and sometimes PNG). | |||
Marcelo Muzilli New member Username: Muzilli Post Number: 4 Registered: 03-2004 |
I would like to use the Java code in the link above (http://support.nowsms.com/discus/messages/485/1360.html) to try to send any MMS file to my phone. But the code was write to run like an applet Java. Somebody has the same code using a Servlet technology? I´m trying to transfer but it gives me some exceptions like "The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.". Any help? Marcelo Muzilli | |||
Marcelo Muzilli New member Username: Muzilli Post Number: 5 Registered: 03-2004 |
In time: thank you Bryce, the problem with the kind of the picture was the relations between the size of my picture and my phone. Thank you. Marcelo Muzilli | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 2079 Registered: 10-2002 |
Marcelo, I don't have any experience in Java Servlets, but with the error text that you are getting, it sounds like you are talking to a server. Do you have the right host name (IP address) and port specified for connecting to the "web" port of NowSMS (same IP address and port as the web interface)? Try putting NowSMS into debug mode by manually editing SMSGW.INI, and adding Debug=Yes under the [SMSGW] section header. Then restart the NowSMS service. Attempt the Java servlet again ... does anything appear in the SMSDEBUG.LOG? If so, that might tell us something ... -bn | |||
Marcelo Muzilli New member Username: Muzilli Post Number: 6 Registered: 03-2004 |
Hy Bryce, I did the code, but when I try to run it returns the following error message: "Invalid username and password, or your web browser does not support authentication.". The question is: where I put the name and password to authenticate in my server (the NowSMS server)? Example in PHP to authenticate: SendSMS("200.233.96.200", 8800, "user", "passwd", $celular, "SMS Test"); Regards, Marcelo Muzilli | |||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 2120 Registered: 10-2002 |
Marcelo, Apologies for the delay in this reply. The user account is defined in the "SMS Users" dialog. -bn |