TCP/IP send character stream

Hi,
Is there any experience in sending a character stream using TCP/IP from XI to another system?
Appreciate any suggestions.
Paul

Paul,
Without having experience with this kind of scenario; I can imagine some possible approaches from the context of XI and Java.
1) Fist Approach
You could implement a receiver comm. channel of the type file which will receive the data (either text or binary) to be transported via TCP/IP from the Integration Engine. In the configuration of this comm. channel you will trigger a java program/class that will perform the actual TCP/IP connection, obviously the Java program will use the data earlier received by the comm. channel as input parameter.
2) Second Approach
You can generate a Java proxy which will act as receiver and effectively do the TCP/IP call.
As you can see the second approach apparently requires less effort but implies having more system resources (Web As 6.40) to run the necessary J2EE beans needed for Java proxy communication. Nevertheless,  this approach is more elegant and technically/functionally fits in the XI architecture.
Hopes this mini-brainstorming will help you decide what to do.
Thanks,
Roberto

Similar Messages

  • How to convert character streams to byte streams?

    Hi,
    I know InputStreamReader can convert byte streams to character streams? But how to convert the character streams back to byte streams? Is there a Java class for that?
    Thanks in advance.

    When do you have to do this? There's probably another way. If you just start out using only InputStreams you shouldn't have that problem.

  • Problem in character stream...sound is distorted

    hi friends,
    I have made a file copy program on audio file(mp3).
    its likely succeeded but the destination file give the distorted sound. I have used the character stream to make it done.
    however, it was not a problem using byte streams before few days.
    below is program
    import java.io.*;
    public class CopyBytes {
        public static void main(String[] args) throws IOException {
            BufferedReader in = null;
            BufferedWriter out = null;
            char []buff=new char[20000];
            int ch=0,length=30;
            try {
                in = new BufferedReader(new FileReader("1.mp3"));
                out = new BufferedWriter(new FileWriter("2.mp3"));      
              for(;ch!=-1;)
                while ((ch=in.read(buff,0,20000))!=-1) {
                      //System.out.format("%s\n\n break\n",new String(buff));
                      out.write(buff,0,20000);
                       break;               
            } finally {
                if (in != null) {
                    in.close();
                if (out != null) {
                    out.close();
    }although there was not use of two loops, actually i was making file splitter program and got this situation accordingly
    any analysis on distorted sound?

    san_4u wrote:
    I have used the character stream to make it done.Why? Clearly, you are not working with text files, so you shouldn't use FileReader/FileWriter at all, but work with streams and bytes. AFAIK, FileReader/FileWriter may perform special operation on the input/output due to character encodings, which you definitely don't want to happen with non-text files (as e.g. MP3 encoded audio files).

  • Can't send photo stream messages on whatsapp

    Hi,
    I can't send 'photo stream' photos on whatsapp however I'm able to send ones from the 'Camera Roll' I've double checked everything and in privacy and restrictions everything seems normal.
    I've recently updated to the latest iOS.
    Any ideas?
    Thanks,
    Lewis

    Hi,
    I also contacted whatsapp directly in regards to this, seems like it's an APP issue from the response I got..
    Hi,
    Thanks for your message.
    Sorry for the delay! We have received many emails recently, and we do our best to answer them all. Thank you for your patience.
    We are very sorry you are experiencing this issue. We are working on a fix for this, and it will be fixed in a future version. We are looking to get this version out as quickly as possible, but we cannot speak for exact timelines. Thanks for your patience.
    In the meantime, please try to delete and reinstall WhatsApp. Alternatively, you can turn on your iCloud Photo Library in iPhone Settings > iCloud > Photos.
    Cheers!
    Mallori
    WhatsApp Support Team

  • PLEASE! Cut a part of a video and send as stream

    Hellow!
    Urgent please!!!!
    Anybody knowns how to cut a part of a video with JMF and the result send as stream for a client? (I don�t want to save this part in a file, but a want to send as stream):
    Thank�s a lot.

    I think RTSP may be a solution, it should allow to choose a time that the sequence starts (and possibly ends) at.
    Hope this helps,
    Stef

  • Send RTP stream to NAT address

    Hi,
    i want to transmit a RTP stream from a server to a host in a LAN.
    This host has a NAT address and it's non real IP address, so i can't send any stream trought usage of SessionManager API because it need to know a public IP.
    The other issue is that in a LAN, in most popular cases, there is a firewall that close the connection from internet to their hosts.
    I think this solution:
    1) LAN's hosts can intiate the connection with server sending a non real RTP data
    2)Server store the SessionManager of this connection
    3)server can send your RTP stream now
    Someone have a more good solution or any suggestion?
    Thank for all
    [email protected]

    I have one appletTransmitter that capture video from webcam and transmit it to other client on internet.
    I try to transmit medialocator from appletTransmitter to servlet1 and then save MedialLocator as servlet attribute, then other client can connect to servlet2 that send saved MediaLocator to appletClient.
    APPLETTRANSMITTER:
    URL url=null;
    MediaLocator media=new MediaLocator("vfw://0");
    try{
    url = new URL("http://localhost:8080/servlet1");
    catch(MalformedURLException mue){mue.printStackTrace();}
    URLConnection conn=null;
    try{
    conn = url.openConnection();
    catch(IOException ioe){ioe.printStackTrace();}
    conn.setDoOutput(true);
    OutputStream os=null;
    ObjectOutputStream oos=null;
    InputStream in=null;
    ObjectInputStream iin=null;
    MediaLocator mResp=null;
    String r=null;
    try{
    os=conn.getOutputStream();
    oos=new ObjectOutputStream(os);
    oos.writeObject(media);
    //oos.writeObject("Prova Servlet");
    oos.flush();
    catch(IOException io){io.printStackTrace();}
    catch(ClassNotFoundException cn){cn.printStackTrace();}
    SERVLET1
    ObjectInputStream objin = new ObjectInputStream(request.getInputStream());
    MediaLocator ml =null;
    try{
    ml = (MediaLocator) objin.readObject();
    context.setAttribute("media",ml);
    catch(ClassNotFoundException e)
    {e.printStackTrace()}
    But on servlet1 there is a ClassNotFoundException: MediaLocator
    What do we think about the solution and exception problem?
    Best Regards,
    Nico from Italy

  • Very slow network performance with Intel NIC when TCP Large Send Offload is enabled

    I have a Windows 2008 server with two NIC's (Intel PRO/1000 PL and Intel PRO/1000 PM), and one virtual external switch connected to each NIC.
    With the 01/14/08 network driver, I get very low throughput on both NIC's (~10KB/sec when downloading from my server when it should be around 11MB/sec).
    I've found that disabling "TCP Large Send Offload (IPv4)" on the virtual switch and "Large Send Offload v2 (IPv4)" on the physical adapters solves the problem.
    Is this a bug in the driver?
    Thank you,
    Ricardo Costa

    2 years later, I was able to get that machine to work with Hyper-V under Windows Server 2008 R2, but only after disabling everything that had anything to do with TCP or IP offloading.  I think that I had to turn off 4 settings on one controller,
    and 5 settings on the other controller.  Once that was done, everything worked flawlessly.  It is very apparent that the Virtual Controllers do not properly use many of the features of non-Intel devices (not all Intel devices work either), and
    that Hyper-V does not completely uninstall if you remove it.
    If you have any problems, start turning off the features that your adapter supports, until it starts working.  You'll need to weight the cost of replacing the controller with a fully supported controller, of which there is no list, or using your existing
    controller at a capacity lower than it physically supports.  This has been an elusive issue with Microsoft's Virtual Server projects since they were first in beta, so don't expect a fix anytime soon.
    P.S. For those who don't know, the settings are on the actual device and can be changed in the Device Manager.  If you are still having trouble after turning off all the settings, then you will need to replace the controller(s) with a different
    make/model.
    Bill Bosacker's Blog @ http://www.openSourceC.org/

  • Problem while sending RTP stream to QuickTime player

    Hello,
    I am trying to send a RTP video stream from a local file to a Quicktime player.
    The player is waiting for the stream in its default ports (6970/6971). I archieve this by using my own RTSP server.
    I start the transmission by using a processor and a datasink. It seems that I send one or two RTCP packages to port 6971, but not RTP packages are sent.
    This is my code:
    pr = Manager.createProcessor( new MediaLocator("file:/rootDirectory/file.mpg"));
    pr.configure();
    while(pr.getState()==Processor.Configuring){}
    TrackControl[] tracks = pr.getTrackControls();
    tracks[0].setFormat(new VideoFormat(VideoFormat.JPEG_RTP));
    tracks[0].setEnabled(true);
    pr.realize();
    while(pr.getState()==Processor.Realizing){}
    DataSource ds = null;
    ds = pr.getDataOutput();
    String url1 = "rtp://193.147.59.231:6970/video/10"
    MediaLocator m1 = new MediaLocator(url1);
    DataSink d1 = Manager.createDataSink(ds, m1);
    d1.open();
    d1.start();JMF doesn't show any error, but my application just is not sending RTP packages. What could be wrong in my code?
    Kind regards.

    Any clue please? I am frustrated!!

  • Sending a stream (?)

    Hello,
    I have a problem:
    I'd like to send a pdf file, but I got only an InputStream representing the file. And since it is a report generated by a database, a file per se does not exisit at all.
    The question is - how do you send such a thing with java mail?
    If it is as simple as:
    MimeBodypart mbp = new MimeBodyPart(inputstream), what mime type should I use? application/pdf and application/octet-stream doesn't seem to be supported.
    I really don't want to encumber the server any more, so writing the stream to a file would not be a good solution.
    best regards
    -- rkr

    Hi,
    In the demo/ direcory from the javamail distribution there is a class called ByteArrayDataSource. It implements DataSource and can be constructed from an InputStream and a String containing the mime type.
    You can use this to make a MimeBodyPart containing the file and the proper mime type:
    MimeBodyPart mbp2 = new MimeBodyPart();
    ByteArrayDataSource bads = new ByteArrayDataSource(stream, type); // stream is the InputStream and type is the mime type
    mbp2.setDataHandler(new DataHandler(bads));
    mbp2.setFileName(filename); // filename is whatever file name should show up in the attachmentYou also need the JavaBeans Activation Framework(javax.activation) in order to use this.

  • Send live stream from local PC to global server

    hello,
    I'd like to capture audio/video from my local PC, and transmit it to a global server, which will send my content to some audiences.
    Since the local PC has no unique IP, the server can't call RTPManager.addTarget(...) to receive live stream.
    Someone recommends me transfer the stream using servlet. But I have no idea.
    Is it possible using JMF RTP, and how?
    Thanks a lot,
    Derek

    Hi Derek,
    I am working on the same thing. I am not able to improve a bit on how to transmit audio captured from my mic. Can u please help me in doing. It will be of much help for me. I would like to transmit sound to computers in the intranet. My email id is [email protected] I would really appreciate if u can help me on this .
    Regards,
    Firmin Dani.

  • Byte and Character Streams

    Hi
    I have an insane doubt, wish U can help me
    Java has two classes (FileInputStream and FileOutputStream) which allow u to read one single byte from a stream or to write One single byte out to a stream.
    A classic example provided by Sun has a loop which reads one byte at a time and writes it out until there is no byte left.
    What I dont get is: if char in Java is Sixteen bits (2 bytes) how can such streams read characters if they read one single byte?
    Tnx in advnce

    import java.io.FileReader;
    char[] read(FileInputStream in, int limit) {
      FileReader reader = new FileReader(in);
      char[] array = new char[limit];
      for (int i = 0; i < limit; i++) {
        int value = reader.read();
        if (value == -1) break;
        array[i] = (char)value;
      return array;
    }This code is not ideal, but it should give you an idea of how to get an character from an input stream.

  • Send same stream to multiple audio outputs

    Hi! I've just unsuccessfully tried to send the same output (an iTunes stream) to *headphones line out* and *usb conected speakers* (harman kardon). I've tried with "Soundflower" feature "aggregate audio devices" but I was only able to play from one single output. I also tried with *Audio Hijack pro* but with no luck, maybe because of my lack of experience with that program. Has anyone any clue about this situation? Thanks a lot!!
    p.s.: I don't know if this is the right forum to post my question, moderators feel free to move it to the appropriate one.

    Audio Hijack Pro will do it. Use "Sound" system preference to set output to one device you want. In Audio Hijack Pro's "Input" tab, set "Source Type" to "Application", select iTunes, click "Hijack", make sure "Mute" is off, go to the 'Effects" tab, click the top-left blank square to insert an effect, choose "Auxiliary Device Output" from "4FX Effect" and set "Device" to the other desired audio output. Use "In" gain on the effect to control its volume.

  • Flex: How to send Microphone Stream Audio data to a Rest API

    Hi,
    I needed to capture audio via a microphone and then sent ths instantanesouly to a REST API  for processing. I do not want to use a media server.
    So is it possible to send instataenous audio stream data to my custom servers.
    Thanks,
    Karan

    well i tried this once for one of my scripts and the final conclusion is its not possible to combine two streams into 1.....how would you time/encode the two voices......there is no know solution to this in flash. If you continue on despite me and find a solution please post it so we can explain to rest of world.

  • Get error 66, when try to use TCP vi send string to arduino

    I use TCP vi to send string to arduinos (arduino uno+ arduino wifi shield, and they have arduino code preloaded inside ) wirelessly through the router. Sometimes they can communicate well, the arduino receive the string send by the TCP vi. But sometimes, there will be an error 66 come out of TCP Write vi, so, labview loop will stop. Arduino will say "connection failed". And I have config the VI sever allow the arduino to access.
    Another thing I want to mention is, when I highlight the execution, the error will come out more frequently.

    Actually, they can communicate not only once, sometimes the VI can pass data several rounds, but suddenly the error 66 appears in TCP write, the loop will stop. And if I rerun the program, things happens again. can anybody tell me why the error come out? Thanks

  • Sending byte streams with a String

    Hi all,
    I want to control a GPIB-Camac Interface with java. Therefore I have to send the GPIB-Commands via a method sendCommand(String). The problem is that my GPIB device expects byte streams rather than a String. Now I don't know how exactly bytes are handled by a String. If I construct a String like this
    String StartGateA = new String(new byte[] { 25, 0, 1 });
    I think the bytes are converted to Unicode, e.g. to 16 bit values. There's the problem. I need to have a String representing the { 25, 0, 1 } byte array as real bytes, i.e. a String containing of 3 bytes holding the specified numbers.
    Are there any suggestions?
    Thx in advance, Mathias

    see ur concern i suppose is that u want to send
    for eg 3 bytes ie 25 3 1 in the form of String to the device,
    and that once u send it the device should recieve in proper format,
    Am i right?
    if yes then is there a way through which u can check if the array that u r sending is recieved properly?
    If you constrcut a String with String s = new String(new byte[] { 25, 0, 1 }); and try to retrieve the bytes you will get them in the same order, so if u r sending it then it should similarly,
    only if u can check whether the string that u r sending is recieved properly, if not then what is the string that is recieved
    Regards
    Rohan

Maybe you are looking for

  • Conditon record for  condition type

    Hi i create my condition  record for my condition type( pr00, MWST,) in pricing in vk11  but when i  create my condition type for output type, account determination and text determination  i don't create the condition record in vk11 so how is   itpos

  • How to activate CUDA to ray-trace in After effects CC?

    When ever I start AE I am getting warning says"Ray-traceing on the GPU requires an approved NVIDA graphics card and CUDO 5.0 or later. For now, ray-tracing will use the CPU..." Well I installed the latest CUDA 5.5.28 and restarted my computer but sti

  • DsTAXI Beta Release and Training Class

    dsTAXI®, the Financial Accounting application written using Forté Express, will be available in its BETA release version mid-June. Multicurrency, multi-company, multi-lingual, and with the ability to journalize one entry with multiple accounting trea

  • Change only SID

    We have a need to change the sid only on images in a VM environment. Sysprep seems to force more than just a sid change. Is there a way to build a xml file that will ONLY change the SID and not reset anything else?

  • TS4443 How can update my iPad to iOS 5??

    I need help, please.