Send Stream using other protocol

Hello everyone, I have a question I do not know whether we can do the following:
- Suppose I have a application protocol in Java, where sending objects over the network:
SendObject (Object data).
- You can send multimedia data (audio and/or video) through my protocol with JMF, what Object I send, if that were possible.
thanks for your help.

Ok, thanks ... captfoss sending the byte array is fine.
On the other hand,
1.- when I receive this byte array and converts it to buffer should I do next?.
using the example:
[http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/LiveData.html]
// In MyDataSource.java...
public PushBufferStream [] getStreams() {
     if (streams == null) {
         streams = new LiveStream[1];
         stream = streams[0] = new LiveStream();
     return streams;
When I receive the data, converts it to buffer and invoke this function.
This function is new and is to pass the buffer to LiveStream.read (Buffer)
public void setBufferReceived(Buffer buffer){
    stream.read(buffer);
}- But not understanding how modifying function LiveStream.run ().
that performs this code."transferHandler.transferData(this); " ??
public void run() {
          while (started) {
               synchronized (this) {
                    while (transferHandler == null && started) {
                         try {
                              wait(1000);
                         } catch (InterruptedException ie) {
                    } // while
               if (started && transferHandler != null) {
                    transferHandler.transferData(this);
                    try {
                         Thread.currentThread().sleep( 10 );
                    } catch (InterruptedException ise) {
          } // while (started)
     } // run     - Also once you create the MyDataSource:
MyDataSource ds = new MyDataSource ();
This DataSource must be connected (connect ()) and start (start ()) in explicit form?.

Similar Messages

  • Sending mail using smtps protocol

    Could anyone post a piece of code to show how to send a message using smtps protocol?
    SSLNotes of 1.3.2ea version say that it's possibile, but i tried whithout success....
    Thanks

    Hello,
    I can send the mail using SMTP with the help of java mail api. But i want to send mail using SMTPS protocol using java. The mail should be encrypted format.
    So, my queries are:
    1. How to send mail using SMTPS protocol?
    2. I want to send the mail as encryption mail. So how to create encrypted mail.?
    Thanks in advance.
    From
    Rajendra.

  • Using other protocol than HTTP for a Nokia 7650 application

    Hello,
    I'm developing an java application for a Nokia 7650 that needs to use SIP over UDP.
    In an emulator on the PC the communication works fine.
    I'm afraid that there will be some problems when I port the application to the real device.
    Can I use SIP over UDP communication on a real Nokia 7650?
    thanks in advance
    Best regards
    Hector

    I add some code example of my application. SIP uses Datagram protocol, which is supported in CLDC.
    // Create a new datagram socket.
    DatagramConnection dc =
    (DatagramConnection)Connector.open("datagram://:5060");
    System.out.println("SYSTEM, datagram server listener:" + "datagram://:5060");
    while (! sipStack.toExit) {
    Datagram datagram =
    dc.newDatagram(MAX_DATAGRAM_SIZE);
    System.out.println("SYSTEM, listening!");
    dc.receive(datagram);
    System.out.println("SYSTEM, packet revceived!");
    // Create asynchronous message handler
    // for this message
    UDPMessageChannel udpMessageChannel =
    new UDPMessageChannel
    (datagram,sipStack);
    } catch (Exception ex) {
    ex.printStackTrace();

  • Cannot send email using port 465 from a network other than my ISP

    I cannot send email from my ISP POP mail account when I am in a different network (e.g. when traveling). This happens with my iPad and my iPhone. However, I can send mail if I turn off wifi and use 3G. The outgoing port is 465.
    Using my .mac account I don't have any problems sending mail using wifi or 3G.
    I have tried adding smtp.mac.com or smtp.me.com as a secondary server to my POP account but it does not work. The secondary server disappears after I add it.

    Contact your isp and ask them what the smtp settings are for when you are traveling. Most isps have different settings for sending email when off their network.

  • I can't open my gmail or send gmails on Firefox. I can read and send gmails on other servers. It started when I was using a hotels wireless connection. Firefox said that this was not a secure site and asked if I wanted to overide it. Since then I have

    I cannot open my gmail nor send any gmails on Firefox. My wife also has gmail and she has no problem on firefox opening or sending her gmails. Also, I cannot access my settings. It started when I was at a hotel last Friday using their wireless connection. When I turned firefox on, which automatically goes to gmail, firefox would not open my gmail as it stated that this was not a secure site. I probable did something incorrectly and I got blocked out. All my other bookmarks work fine. I can access my gmail using other servers. Please help. Thank you.
    == This happened ==
    Every time Firefox opened
    == June 11

    how can i open my gmail at mozilla firefox? because i cant open it..

  • Hi,   My photo stream used to work fine.  But after removing all the photos to separate folders in my computer, my new photos are no longer streaming to my PC.  They appear in the photo stream on my other devices - iPhone5 and iPad Mini.  It's just my PC

    Hi,
    My photo stream used to work fine.  But after removing all the photos to separate folders in my computer, my new photos are no longer streaming to my PC.  They appear in the photo stream on my other devices - iPhone5 and iPad Mini.  It's just my PC that's missing the photos.
    When I open the iCloud control panel, I cannot turn on the photos.  That option is ghosted.  I'm running on Windows 7 with iCloud 3.0.  Any ideas on how I can fix this?  All help is appreciated!  Thanks!

    Hi Kevinmvb,
    Welcome to the Support Communities!
    The article below may be able to help you with this.  It sounds like you may have moved your photos out of the Uploads folder where they need to reside.
    iCloud: My Photo Stream troubleshooting
    http://support.apple.com/kb/TS3989
    Cheers,
    - Judy

  • Problem with Thunderbird email: When I send email using a mailing list, with my email included in the list, the message shows up in my Sent list and others rece

    Problem with Thunderbird email:
    When I send email using a mailing list, with my email included in the list, the message shows up in my Sent list and others receive it but it does not come to my email Inbox. The same problem occurs when I send the email to the mailing list addresses individually. When I send a simple test message to myself, I do receive it in my Inbox. Can you help me??
    Bob Greenman

    Are you using either cc or bcc? Is googlemail involved? Some email providers suppress cc's and bcc's to oneself since you will have a copy in your Sent folder.

  • I am unable to send emails using mail from my btinternet and yahoo accounts similar problem to others with mobile me accounts on lion any suggestions?

    I am unable to send emails using mail from my btinternet and yahoo accounts similar problem to others with mobile me accounts on lion any suggestions?

    Do I need to delete all my email accounts and start again?

  • After updating to OS5, my iphone 4 can not send mail using wi fi and 3G.. only 1 or the other. It will not switch servers from using ATT 3G server to then using WiFi

    I have called my internet provider, my email server company and AT&T. All my settings are fine and everything was fine before the OS5 upgrade. I can send email using WiFi when I have my email host as the outgoing server and can send email 3G using ATT server only when on 3G. The phone is not switching back and forth servers from wi fi connection to 3G. 

    Hey there Jachin W.,
    It sounds like you are unable to connect to your home Wi-Fi suddenly on 2 different iOS devices. I would be interested to know if the affected phones are able to connect to a different Wi-Fi connection, but barring that I would use the following article to help troubleshoot the devices and the Wi-Fi connection:
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/TS1398
    Tap Settings > Wi-Fi and turn Wi-Fi off and on. If your Wi-Fi setting is dimmed, follow these steps.
    Restart your iOS device.
    Tap Settings > Wi-Fi and locate the Wi-Fi network to which you're connected.
    Tap and Forget this Network.
    Try to connect to your desired Wi-Fi network.
    Note: You may need to enter your Wi-Fi password again if your network requires one.
    Turn your Wi-Fi router off and on2. If your ISP also provides cable or phone service, check with them before attempting this step to avoid interruption of service.
    Update your device to the latest version of software.
    Update your Wi-Fi router to the latest firmware2. For AirPort Base Stations, install updates using the AirPort Utility.
    And this section from toward the bottom if needed:
    Unable to connect to a Wi-Fi network
    Verify that you're attempting to connect to your desired Wi-Fi network.
    Make sure you're entering your Wi-Fi password correctly. Passwords may be case sensitive and may contain numbers or special characters.
    Reset network settings by tapping Settings > General > Reset > Reset Network Settings. Note: This will reset all network settings including:
    previously connected Wi-Fi networks and passwords
    recently used Bluetooth accessories
    VPN and APN settings
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • Hello, I'm using Mountain Lion and mail does not leave the mails on the server, either on iCloud nor on other suppliers (orange). They are both using iMap protocol... Any place where I could change this ? Thanks for any hall; Christian

    Hello, I'm using Mountain Lion and mail does not leave the mails on the server, either on iCloud nor on other suppliers (orange). They are both using iMap protocol... Any place where I could change this ? Thanks for any hall; Christian

    Under what circumstances does mail "not leave the mails on the server"?
    If you mean that you delete them (or move them out of the inbox) on one device and then find them not in the inbox on the server when you look from another device, that's how IMAP is supposed to work. (Note that the deletion or moving might be the result of rules you have set up in Mail.)
    If you mean something else, please explain your issue in more detail.

  • Updated Firefox and now can't send messages in Facebook but can if I use other Internet Applications

    Since the update of Firefox, when I try to send messages to friends in Facebook I get an error message stating that "message failed to send". Have not been able to find a work around. Have cleared History (Cookies and Cache). Facebook messages work on our other laptop which has not been updated and if I use other Internet applications like IE, My Opera etc

    Hi,
    You can try updating Java to the latest (7u9) and restart Firefox: http://www.oracle.com/technetwork/java/javase/downloads/jre7u9-downloads-1859586.html
    Please make sure to choose either '''Windows x86 Offline''' or '''Windows x86 Online'''.
    If problems persist you can then reset Firefox and start afresh.
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    If you would like to take a listing of the add-ons, important preferences/settings etc. to quickly replicate the previous profile, please open '''Troubleshooting Information''' via '''Help''' ('''Alt''' + '''H'''), '''Copy all to clipboard''' and paste it into MS Office Excel, or OpenOffice/LibreOffice Calc, or notepad. However, it would be a good idea to check for the existence of the issue immediately after the reset.

  • HT3529 i used to be able to send pictures so other people on my iphone to others who dont have an iphone and recently the pictures have not been sending, why is that?

    I never had a problem sending pictures to other people from my iphone when they do not have an iphone but recently, my pictures wont go through to a non iphone user...how do i fix this?

    are you getting an error when sending them or are they just not recieving the pictures?

  • Cannot send message using the server (null)

    i use mail 2.1.
    i have a .mac account and have three other email accounts attached to my mail account.
    lately, i cannot send any email.
    the switchiing ports fix hasn't helped either.
    this is the error message:
    CANNOT SEND MESSAGE USING THE SERVER (null)
    The server response was: 5.1.0 <email [email protected]>...
    From address does not match authentication.
    Use the pop-up menu below to try a different outgoing mail server. All messages will use this server until you quit Mail or change your network settings.
    Message from: email <[email protected]>
    Send message using: [there is a combo box here with all the four accounts servers listed]
    no matter which one i pick it doesn't work and no email is sent.
    anyone have this error before? or now how to fix it?
    i'd be appreciative.
    thanks
    1.67 GHz Power PC PowerBook G4   Mac OS X (10.4.6)   Sony HDR HC3 HD HandyCam MiniDV

    I was having a similar problem (don't feel like typing all the details)
    I was about to to delete my com.apple.mail.plist, when finally it hit me.
    I ran ethereal (again, I'm sorry, but learning how to use ethereal is a topic unto itself). Following the TCP stream (ie. looking at the smtp messages being sent back and forth) I came across two problems. For some reason my port number was set to 567 or something like that, when it's supposed to be 25, as I had originally set it to.
    Once I corrected the port number I started receiving an error message from the smtp server. It said the return email address could not be authenticated. (using xyz.com as an example) The correct return email address was supposed to be [email protected], but for some reason it was changed to john@xyz in the account settings.
    Anyway, to get to the point, another thing to check is that your return address has been set correctly, and if all else fails, make sure you have X11 installed and use fink to install and run ethereal. This will let you know if you are actually connecting to the server, and will show you any error messages.
    PS. I think this problem started occurring with the last update made to mail. I believe it somehow corrupted my settings. This would explain how my port number could have been changed to the default port number of .mac mail.

  • Can no longer send mail from other apps

    Problem:
    If I go into any app (other than Mail) and try to send a message (via email) and I either get nothing or some apps will say that "Mail needs to be configured in order to do this."  After doing a restore on my iPod touch (4th Gen., running the latest iOS5) I had only configured a few accounts under "Mail, Contacts, Calenddars", and *was* able to send mail from other apps just fine.  Now that I have 13 accounts I cannot; not only is Mail configured and working fine (by itself,) but I now only have one account with "Mail" activated, and it is indeed set as the "default account" in Settings anyhow.  This is frustrating since some apps depend on email to let me export its data but is also a nuisance since it makes it more difficult for me to share content with others.
    Has anyone encountered this bug and/or have a tip?

    It is possible the Evil Starbucks empire has blocked SMTP sending as an antispam measure. You would need to log in to your email server using the smtpauth protocol. For example, Earthlink has an smtpauth.earthlink.net server for secure sending, which I was able to use sending from any public AP. Possibly T-Mobile has a similar authorized server.
    But nowadays I just use Gmail, they make it easy and reliable to send from anywhere because they use a custom smtp port. Yeah, Gmail solved a multitude of problems with mobile sending.
    Aluminum PowerBook   Mac OS X (10.4.7)  

  • File to File scenario using Transport Protocol FTP  Problem

    Hi,
    my scenario is a file to file scenario using Transport Protocol FTP
    there are 3 systems involved
    a. computer 1 ( My system-source)
    b. computer 2 (XI server)
    c. computer 3 (Target system)
    I want XI to pick file from computer 1 and post it to computer 3
    I am logging on to XI server from computer 1(thro SAP GUI),
    <u><b>Sender communication  channel :</b></u>
    Transport protocol:FTP
    Messsage protocol: file
    <u><b>In FTP connection Parameters:</b></u>
    Server: computer 1 IP address
    port:21
    User name and PW---> I have given computer 1 Username and password.
    Connection mode: permanently
    Transfer mode: Binary
    Folder: C:\ftproot\output
    filename : given
    <u><b>In Receiver Communication Channel</b></u>
    Transport protocol:FTP
    Message protocol: file
    <u><b>In FTP connection Parameters:</b></u>
    Server: computer 3 IP address
    port:21
    User name and PW---> I have given computer 3 Username and password.
    Connection mode: permanently
    Transfer mode: Binary
    Put File: Use Temporary File
    Folder:
    eccserver\saploc\tmp
    filename scheme: given
    When I activate the scenario file is not getting picked from the source
    In Adapter Framework: Message says up and running No message processing now
    How to check FTP server is up and running on computer 1 (source system)and Computer 2 (XI server)?
    What could be the problem ?
    Thanks
    dushanth

    Hi
    Consider that I dont have FTP installed on my computer. According to this blog
    /people/shabarish.vijayakumar/blog/2006/08/01/along-came-a-file-adapter-mr-ftp-and-rest-of-the-gang
    I have configured.
    In sender comm channel I have given Ipaddress of computer 1 (which has a file to be picked)
    In Receiver Comm channel I have given IP address of computer 3 (in which file to be posted)
    and computer 2 is the XI server
    Computer 1 has FTP installed
    1. XI server should have FTP installed or not ? IF yes is it FTP client  or FTP server   or Guild FTP (according to the blog is enough)
    2. Computer 3 should have FTP installed or not ?
    Please help me I am really confused.
    Thanks
    dushanth

Maybe you are looking for

  • Strange scenario,Oracle can not display the data in mysql correctly

    I use Heterogeneous Service+ODBC to achieve "oracle access mysql"(any other method?),and now i find Oracle can not display the data in mysql correctly: -------mysql------------ mysql> create table tst(id int,name varchar(10)); Query OK, 0 rows affect

  • Need to input a value in a Property Node that doesn't have "Change All to Read" property.

    Hi, I am developing an remote panel application that have 3 vi's. 1 - Login vi => If username and password is OK, then the login vi add the Main vi to access list, and the user can access it. 2 - Main vi => Is the main code 3 - Supervisory Panel => H

  • How do i format the contents in message body in the email

    Hi guys, I have a problem.I am sending a complete record columns of a interative report from apex as a mail.But the contents are very bad to see.I want them to appear as a report along with headings in th email to user.PLs guide me in dis Thanks in a

  • Display a text as blinking in classical report

    Hi experts, I've to display a text as blinking in classical report output. Is this possible? If possible, how to do this? Need your help. With regards, Goutam

  • Eject CD doesn't work!

    Hi! Have had a strange problem concerning audio CD's in iMovie 5.0.2 under Tiger 1.4.2. If I have imported any track on the CD, I can't eject it, neither from iMovie nor Finder or any other app. Only solution is to quit iMovie before ejecting. Any so