Multiple streams in ResultSet

Is there a way to read seperate streams in a result set? Here is some sample code I am trying:
string sqlQuery =
"SELECT HDRFROMSPC_,HDRDATE_,HDRALL_,BODY_ FROM MESSAGES_ WHERE MESSAGEID_ = 840";
Statement *stmt1 = conn->createStatement (sqlQuery);
ResultSet *rset1 = stmt1->executeQuery ();
cout << "Query :" << sqlQuery << endl;
int length = 0;
unsigned int size = 20000;
char buffer[4096];
rset1->setCharacterStreamMode(1, 4000);     
while (rset1->next ())
     Stream *stream = rset1->getStream (1);
     while(stream->status () == Stream::READY_FOR_READ)
          length += stream->readBuffer (buffer +length, size);
     cout << "1st buffer: " << buffer << endl;
     outFile << "From " << buffer << endl;
     Clob clob = rset1->getClob (3);
dumpClob (clob, outFile);
     clob = rset1->getClob (4);
     dumpClob (clob, outFile);
It seems that the rset1->setCharacterStreamMode() only works if called before the first while statement. If I call setCharacterStreamMode() more than once, the data gets concatenated into one buffer (I don't understand that...).
Any help would be much appreciated.
Jason

Its pretty easy to just resize and position them. For a 3 cam shoot, place each cam's clips in their own track; cam 1 in V1, cam 2 in V2 and cam 3 in V3. Take the first clip of cam 3 and resize and position it, then copy it. Select all clips forward in that track and Paste Attributes->Basic Motion. Repeat for cam 2 and cam 1. Setting it up for three cameras shouldn't take more than a minute or two.
When you're down editing, select all clips and choose Remove Attributes->Basic Motion and all clips will go back to full size and centered.
-DH

Similar Messages

  • How to set up multiple streams on one PC

    Hi there,
    can anyone guide me in setting up multiple streams using the FLME and different sources?
    thanks,

    Hi,
    Did you know that you can have several instances of Flash Media Live Encoder  running on your computer?
    Open FMLE and choose the camera you want to use and set the parameters etc.
    double click the FMLE application again and other instance will open. You  can then set up a different camera on this instance, this way you can have two cameras streaming at the same time.
    the only issue here is that you need a computer powerful enough to handle the multple streams and the bandwidth of multiple streams from the computer to FMS for example.
    Is this what you meant?

  • Can I have multiple stream types in one object?

    For my final project in my data commucnications class I'm writing a client/server socket application that will allow multiple clients to play TicTacToe simultaneously against the game on the server. The teacher is a C/C++ jock, and knows very little Java. We're free to choose any language that will do sockets, and I love Java and don't love C++.
    I've built the GUI, and got it to the point that I can reliably connect multiple clients on different machines in the school lab to the Server object, which accepts the new sockets and creates a new thread of ServerGame to do the playing in response to the client's moves. A mousePressed() detects clicks in the grid, and modifies a string to contain the status of the game. I've used a BufferedReader and PrintWriter combination on both sides, to send the GameString back and forth, starting with "---------", then the client makes a move and it changes to "X--------" and the PrintWriter sends it over and the ServerGame makes a move to "X---O----" and send it back, etc, etc. You get the idea. I have a ways to go with the implementation of strategy stuff for the ServerGame's moves, but I like it so far. But now I realize it would be really cool to add to it.
    What I want to do, since there can be multiple players, is have a way that it can be like a TicTacToe club. At any one time, it would be nice to be able to know who else is playing and what their won/loss record is. I plan a Player object, with String name, int wins, losses, ties, gets and sets. With Textfields and a Sign In button I should be able to send the Player name to the Server, which can look up the name in a Vector of Player objects , find the one that matches, and sends the Player object for that name over to the Client, and also provide it to the ServerGame. Each player's won/loss record will be updated as the play continues, and the record will be "stored" in the Server's vector when he "logs off". Updates shouldn't be too hard to manage.
    So, with that as the description, here's the question -- most streams don't handle Objects. I see that ObjectInputStream and ObjectOutputStream do. So -- am I headed for trouble in using multiple stream objects in an application? I suppose I could just use the object streams and let them send out a serialized String. In other words, I want to add this to my program, but I don't want to lose too much time finding out for myself if it works one way or the other. I already have working code for the String. Without giving too much away, can anyone give me some general guidance here?

    Anyway, here's the present roadblock that's eating into the time I have left. I've spent many happy hours looking for what I'm missing here, and I'm stumped, real-time.
    I found it was no problem to just send everything over and back with ObjectInputStream and ObjectOutputStream. From the client I send a String with the state of the game, and can break it down and code for decisions in the server as to a response and send the new String back to the client. I now have a Player class with Strings name and password, ints wins, losses, ties. I have a sign-in in the client GUI and old "members" of the club are welcomed and matched with their Player object stored in a Vector, and new members are welcomed and added to the Vector. My idea is to make the Vector static so the clients can have access to the Vector through their individual threads of the Game in the server. That way I should be able to make it so that any one player can have in his client window a TextArea listing who's playing right now, with their won-loss record, and have it updated, real-time.
    The problem is that in my test-program for the concept, I can get a Player object to go back and forth, I can make changes in it and send it back and have it display properly at either end after a change. What I'm aiming at in the end is the ability to pass a copy of the Vector object from the server to the client, for updating the status of everyone else playing, and when there's a win or loss in an individual client, it should be able to tell its own server thread and through that update the Vector for all to access. Sounds OK to me, but what's happening is that the Vector that goes into the pipe at the server is not the same as the Vector that comes out the pipe into the client. I've tried all the tricks I can think of using console System.out.println()'s, and it's really weird.
    I build a dummy Vector in the constructor with 4 Players. I can send a message to the server that removes elementAt(0), and tell it to list the contents of the Vector there, and sure enough the first element is gone, and the console shows a printout of the contents of all the remaining Player objects and their members. But when I writeObject() back to the client, the whole Vector arrives at the client end. Even after I've removed all the Player elements one by one, I receive the full original Vector in the client. I put it into a local Vector cast from the readObject() method. I believe that should live only as long as the method. I even tried putting clear() at the end of the method, so there wouldn't be anything lingering the next time I call the method that gets the Vector from the server.
    What seems the biggest clue is that now I've set up another method and a button for it, that gets the elementAt(0) from the server Vector, changes the name and sends it back. Again, after the regular call to get the Vector sent over, it shows in the server console that one element has been removed. And one by one the element sent over from (0) is the one that was bumped down to fill the space from removeElementAt(). But in the client, the console shows 4 objects in the Vector, and one by one, starting at (0), the Player whose name was changed fills in right up to the top of the Vector.
    So something is persisting, and I just can't find it.
    The code is hundres of lines, so I hesitate to send it in here. I just hope this somewhat lengthy description tips off someone who might know where to look.
    Thanks a lot
    F

  • Improving multiple streams, Apple TV streaming?

    Anyone have a time capsule and experience a lot of stuttering with streaming files to appletv? I replaced my time capsule with my dlink router and this works much better, one stutter compared to 20 with the time capsule in a given time (this is with a wired connection). I like my time capsule too, does anyone know of a fix or how to improve QOL (multiple streams etc)?
    Thanks
    Mo

    Since the Apple TV is not equipped with Gigabit-Ethernet ports you can expect the best streaming performance if you have both the Time Capsule (TC) and Apple TV running in the "802.11n only (5 GHz)" radio mode. Next best would be to have them connected via 100 Mb Ethernet. Anything less than these would challenge anything above SD video.

  • Multiple stream with FMLE

    Is FMLE capable to detect few inputs and to stream multiple streams with different settings?
    I would like to use DeckLink Duo with 2 sdi inputs, one SDI input would be HD signal other SD. Can I open two screens of FMLE and stream simultaneous?

    You can run multiple instances of FMLE and select different devices/stream settings in each. Just double-click FMLE, then double-click again, you'll get two windows that you can set the different configurations in.

  • Multiple Streams From iTunes

    Currently, use multiple streams to two Airport Express stations to various parts of the house when I entertain guests. If I add an Apple TV, will I be able to stream music to it at the same time as the two Airport Express stations? Has anyone tried this? Thanks in advance for your quick response.
    iMac G5 2Ghz   Mac OS X (10.4.9)  

    Thanks Chris. I assumed I could stream music through AppleTV without the TV on. Hmmmm... I was hoping to stream simultaneously through two Airport Express stations and AppleTV. When I entertain, I like to have the same music in all areas of the house. I was hoping to add AppleTV to my entertainment system in living room and move the Airport Express station to another room. I'm not sure if I'm interested in buying an AppleTV if I can't stream audio simultaneously. Does anyone else have thoughts?

  • Streaming multiple streams from multiple capture cards at the same time

    Hi All,
    I have 2 the same capture card. And I am trying to stream to 2 diffrent rtmp server. I start first one and no problem. But when I run second FME instance and select second stream card, first one turns to black and second one shows up. When I close second, first one again comes back.
    What shoul I do for streaming multiple streams form multiple stream cards?
    Best regards.

    They are, yes, but I'm also working with multitrack sessions using clips made from various different sound files.
    Ahh ok, use markers?
    So, this sort of thing isn't possible in multitrack mode then?
    If not, it sounds I'll have to "mix down" my multitrack session into a single file and set up the markers in Waveform Edit view.
    That's an extra step I'd have to do, and after editing the multitrack session, surely some markers . . . oh wait, no . . . every time I output the new mix down file from the multitrack I'd need to redo all the markers. Drat . . .
    Honestly, I am very new to Audition, but I'm about to plow into it, big-time, and I'm hoping for a nice non-destructive and fast workflow that'll enable me to output sets of sounds from the same multitrack session.
    But, it seems like this functionality is currently missing.

  • Ability to control multiple streams?  FMLE command line CMD

    I'm new to the CMD line feature in FMLE.
    I want to stream multiple streams from FMLE, but is it possible to start stream 1 then stream 2 and then stream 3 at different times through the CMD Line?
    Best
    Jeff

    With the single instance you can not. You have to open 3 diff. instance of FMLE with profile you define.

  • Help :add multiple rows from Resultset to ArrayList ?

    My query returns one column and multiple rows. In Java code , I am trying to get this data in array or arraylist through ResultSet
    ex:
    item_num
    p001
    p002
    p003
    when I print, it only gets the item in the first row.
    ArrayList myArrayList = new ArrayList();
    resultset = preparedstatement.executeQuery();
    if (resultset.next())
    myArrayList.add(new String(resultset.getString("item_num")));
    Print:
    for (int j = 0 ; j < myArrayList.size() ; j++ )
    System.out.println((String)myArrayList.get(j)); --this prints only the first item.
    can someone assist ?

    changing if to while fixed it.

  • How to handle multiple streams

    Hi
    I wanted to handle multiple source Streams with Player. do i need to create a each player for each Stream ?? how can i do that ??
    Thanks in Advance,
    Karthikeyan R

    It's not at all obvious what a SequenceOutputStream would do. The way to write lots of stuff over a socket is to wrap multiple output streams round sock.getOutputStream and flush each one when you've finished with it. (There may be issues with compressed / bit output streams).

  • Single socket, multiple streams?

    Hey,
    I'm currently fiddling around writing an Instant Messenger, and expecting a problem.
    Basically across the same socket I'll be sending messages (user-user), other client messages and small loads of image data.
    I'm thinking concidering it's a single stream all information will be queued, for instance if:
    1. The server is sending, lets say a 700mb file through the one socket (wouldn't happen, but to show my point).
    2. Users are trying to message the user recieving the 700mb file through the same socket/connection.
    Basically the way I'm seeing it is the messages the users are trying to send to the user won't go through untill the 700mb file is done sending because it was set first.
    In short: Do socket output streams queue data in a way that messages will be withheld untill other information goes through? And if so how would I avoid this?
    Thanks in advance,
    Danny.

    Thanks for the help, I'll look into it.
    When I said messages I meant in the IM sense, just to show an example of where I believe the problem would have occured.
    I think multiple socket connections may be the way to go, one for general protocol data and another (when needed) for image data.
    Thanks again :)

  • Monitoring Multiple Streams

    Hi All
    A quick question
    I have a very large file on which I do some processing
    As a result of the file size I have 4 InputStreams which read in
    from various sections of the file in diffferent threads
    Is there anyway to monitor the progress of all the inputstreams as a whole ???
    I have used ProgressMonitorInPutStream to check the progress of the largest section of the
    file - but I would like to be able to check the progress of the other streams as well
    Its a Bit messy to have 4 progress monitors on screen at once is there any way I can just
    have one progress bar and still process the files using multiple threads and streams ?????
    Thanks for any help !
    Harshad

    Its a Bit messy to have 4 progress monitors on screen at onceThe documentation I can find for ProgressMonitor is not consistent, so I'm slightly confused, but off the top of my head one hacky way of doing this is to have a single ProgressMonitorInputStream which has as its InputStream a stream to which your threads copy all the stuff they've read. How this will affect performance, I don't know.

  • Adobe Connect server having difficulty handling multiple streams?

    Hello,
    We have some users that are having problems playing Adobe Presenter files that they have uploaded Connect (we run 7.5). The customers (teachers) say they use the files for online courses and get reports from students that sometimes the modules go into buffering and never get out of it. Is this a capacity issue? If yes, what are the options for how to deal with it? Thank you.

    The server shouldn't have issues with streaming multiple Presenter courses. Each server is designed to handle upto 500 concurrent connections, so if you have more than 500 students trying to access the presentation at the same time, you will likely see issues. If that is not the case, then you may have a firewall issue or something else causing the issue. Do you have any Anti-virus runing on the Server? Have you looked at the Logs to see if there is any insight there as to what happened?

  • Multiple Streaming from itunes

    Can iTunes stream to multiple devices at the same time? Streaming different content at the same time.

    drpjk wrote:
    Can iTunes stream to multiple devices at the same time?
    yes.
    Streaming different content at the same time.
    no.
    however, multiple devices can access different content in your library simultaneously. for example, you can play a movie on TV, a tv show on iPad, and play music tracks on an iPod Touch at the same time.

  • How to mix audio data from multiple streams without increasing in size?

    For example, two clients use JMF to capture audio in linear format (content type is raw)and both send the captured data to a third client where it performs mixing to generate one data stream. Suppose each source data size is S, the mixed stream (using JMF "merge") size is S+S which is not what I want. Is there any function to generte mixed stream with size S? I don't need to the capability to reverse mixed stream back to two individual source streams.
    Thanks.

    S+S, ahh an academic.
    This is actually a forest-trees issue here.
    What your doing is appending the files, which would result in a size of 2S. What you want is somthing of size S. To do this you would need a Normilized merge. I say normalized merge because thats going to give you the best result while still avoiding out of range values.
    This is easy enough to by hand if both streams S1 and S2 are of the same frequency. If they are not the same frequency, the result will be size of the larger file when convereted to whatever uniformfrequency.

Maybe you are looking for