AQ message containig image (jpeg,tiff...)

Hi,
I need to build an app that buils a AQ message containing an image (jpeg,tiff...)without any Oracle SW installed on that box.The message will then be enqueued
to a AQ queue on a remote system.
1st - Is it possible to have a message containing a queue?
2nd - Do you think Java and AQ Java API is the best solution?
Thanks.
Luis

If you do not need any Oracle SW at the client build an XML message using the IDAP specification (supported in 9i) and post it to an AQ servelet running where your database queues are located. This will gice you maximum independence at the client side. The XML/HTTP message can be generated using any language and needs only to follow AQ's IDAP spec.

Similar Messages

  • Cannot import still image: jpeg/tiff/png/gif/ai/psd

    Hello all:
    I'm running into a strange error. No matter what size image I try, I cannot seem to import a still image into Adoe Premiere Pro cs4 running on Mac OSX 10.6.2
    The error I receive is a "File Import Error: File Video Dimensions width/height too large."
    I've tried the following to isolate why Premiere is returning this error:
    - importing images at different sizes: 100x200, 1000x2000 etc
    - saving the image as different file formats: jpeg, tiff, gif, png etc
    - importing it as an illustrator file
    - importing it as a Photoshop file
    None of that worked. I'm at my wit's end and I can't seem to find anybody that has experienced this error before.

    Here are some threads to check:
    http://forums.adobe.com/thread/387776
    http://forums.adobe.com/thread/480381
    http://forums.adobe.com/thread/387156
    http://forums.adobe.com/thread/443138
    IIRC, the third one is for the Mac, but might be useful info in all.
    Good luck,
    Hunt
    PS - welcome to the forum

  • Bridge Image Processor TIFF format

    I use Bridge's Image Processor to batch JPEG images to TIFFs before Photoshopping them, but I've noticed that it saves TIFFs with Mac byte order by default.
    This isn't usually a problem, but many of these images will move to another department in my organisation for inclusion in eBooks and other digital publications, and the Mac byte order causes issues for them and their production processes, necessitating a batch process back to IBM PC order.
    Is there anyway to change the default Image Processor format to IBM PC byte order?

    That's what I thought, but the script doesn't have those parameters, so it would probably be a matter of delving deeper than the Image Processor functionality.
    I can make batch that would do it, rather than Image Processor, but it would be nice to have this feature built-in.
    I'll see what the PS forum has to say.
    Cheers.

  • JPEG, TIFF or PSD?

    When Preparing images in PS for use in a PrPro DVD, what file format is best to "save as" in PS?
    Thank you
    Michael

    I almost always use PSD, and have had no issues. Some are Flattened (no individual Layers any more), but many are Layered, and often Imported as a Sequence, to animate the Layers individually. I also utilize the Transparency support in PSD's.
    I also use PNG's, but not as often (supports Transparency, but I find PSD's do it more to my liking)
    TIFF's also work well, but as I often need the Layer handling in the PSD (TIFF's can support Layers, but I find that support less than perfect for my Images)
    JPEG's utilize compression, and as I will almost always Export w/ some form of compression, shun that format
    Just my personal choices,
    Hunt

  • XY graph export image JPEG color PB

    Dear.
    How save a graph in JPEG with a simplified presentation and keep the line color on the picture like "Invoke node: Export images" .
    To have  JPEG image I used the "invoke node: get image" and I put a 1 on the color to simplified the presentation but it's don't keep the line color.
    I have seen this post who speek about this subject:
    http://forums.ni.com/ni/board/message?board.id=170​&message.id=122665&query.id=182247#M122665
    In the zip there is a the project to show the difference between the tow "invoke node" 
    I someome can help me..  
    Massif
    Attachments:
    image simplified JPEG.zip ‏77 KB

    Hi Massif,
    if you set the picture depth to 1 you can´t have any color in it. Use 24 bit and change the background color. Or another solution, save your picture as bitmap, open it and save it as jpg. See the attached example.
    Mike
    Message Edited by MikeS81 on 04-21-2008 09:52 AM
    Attachments:
    image JPEG juste line color_LV80.vi ‏26 KB

  • Include Develop settings in metadata inside JPEG, TIFF, and PSD files ignored when unchecked

    In the Catalog Settings under the Metadata tab, I have unchecked the option 'Include Develop settings in metadata inside JPEG, TIFF and PSD files'.
    I then selected a JPEG photograph in the Library module and chose Metadata/Save Metatdata to File.  I wanted to save the metadata that I had added (keywords, IPTC, rating, etc), but not the develop settings.
    I then imported the jpeg back into another catalog.  The metadata I had added was there as expected, but so are the develop settings.  This I did not expect or want.
    Have I got something wrong here?  My understanding is that turning off the 'Include Develop settings in metadata inside JPEG, TIFF and PSD files' option means that develop settings are not written to the xmp area in non raw files such as jpegs.
    Looks like a bug to me.
    Tony

    Hello all,
    I have investigated this problem further and now have the answer.  It is not that the option "Include Develop settings in metadata inside JPEG, TIFF, and PSD files" is ignored, but it appears that the LR catalog is not properly updated when this option is turned off.
    Here are steps to test and illustrate the problem:
    1. Create a new folder and place a copy of an original jpeg image (original from camera) in the new folder.  Make sure you keep the original safe and only work on copies.
    2. Create a new catalog in Lightroom 2.3.
    3. Import the jpeg image from the new folder.
    4. Add some metadata (keywords, ratings, title, caption, IPTC data, etc).
    5. Make some Develop adjustments to the image.
    6. Open "Catalogue Settings" from the Edit menu and check (enable) the option "Include Develop settings in metadata inside JPEG, TIFF, and PSD files".  Uncheck (disable)  the "Automatically write changes into XMP" option.
    7. Select "Save Metadata to File".
    8. Delete the jpeg image from the Library module, then re-import it.
    9. Copy the original image back to the new folder, replacing the updated jpeg (once again, the jpeg image now contains no metadata from Lightroom).  At this stage, Lightroom fails to recognize that the metadata in the LR catalog doesn’t match the metadata content in the jpeg file.  I would have though that it should.
    10. Open "Catalogue Settings" from the Edit menu and uncheck (turn off) the option "Include Develop settings in metadata inside JPEG, TIFF, and PSD files".
    11. Reset the Develop settings.
    12. You now need to make a change to the metadata like increase or decrease the rating (otherwise LR won’t save any metadata to the jpeg file - LR is being too smart and thinks it’s already up to date, so does nothing when you do the next step).
    12. Select "Save Metadata to File".
    13. Delete the jpeg image from the Library module again, then re-import it again.
    14. Look at the develop settings (that you specifically did not want saved within the jpeg file in step 10).
    Although the Develop settings were Reset in step 11, you have ended up with the original Develop settings from step 5.  It is true that LR has not saved the reset develop settings, but it also hasn’t removed the old develop settings that are still stored in the catalog.  This must be considered a bug (oversight).  Note that it has also saved an Import snapshot as well.
    For the more technically minded (and the LR developers if you are listening), the field "xmp" in the table "Adobe_AdditionalMetadata" is not updated (old camera raw settings and snapshot settings are left behind) when the "Include Develop settings in metadata inside JPEG, TIFF, and PSD files" option is unchecked (disabled) and it seems that this is the data that is written to the jpeg file when you select "Save Metadata to File".  Note that the state of "Automatically write changes into XMP" has not effect on this process - I tried it on and off.
    Hope that this might be of some help to others one day.
    Tony

  • Tracking placed files (jpeg,tiff,word,PDF,excel)

    It was recommended to ask this here vs bridge - not much luck in bridge. The situation: i have multiple sources sending a variety of files (jpeg,tiff,word,PDF,and excel). As the book is designed many of them will be placed. As long as the sources update with the same name im good. However, they will inevitably send me batches of files containing new files - how can I track what has been placed and what hasn't. I will have multiple folders to organize the chaos. One thing bridge helped with: keyword. I can quite easily assign a placed keyword in bridge, filter using that word and im done. Except for word and excel - metadata doesn't take. Someone explained this to me.
    The sources are out of country, so i have to track this. Bridge takes care of 90%. Perhaps someone has dealt with this. Again, if someone adds a new photo without calling it out, keyword work. Its the Microsoft documents that get tricky. In advance, i appreciate our time.

    Start by creating an Item type of OLE container. Set the following properties:
    - OLE Tenant Types: Embedded
    - Database Item: Yes
    Make that item the last item in the block.
    Create a push button such as 'Insert Document' with similar code:
    DECLARE
      vcFile VARCHAR2(1024);
    BEGIN 
      vcFile := win_api_dialog.Open_File('Select Document File to Insert',NULL,'MS-Word files (*.doc)|*.doc|'||
         'PDF files (*.pdf)|*.pdf|Excel Files (*.xls)|*.xls|Outlook message files (*.msg)|*.msg|All files (*.*)|*.*|',
         TRUE,win_api.OFN_FLAG_DEFAULT,TRUE);
      go_block('<block name>');
      last_record;
      Create_Record;
      initialize_container('<oleitemname>',vcFile);
    EXCEPTION
      WHEN NO_DATA_FOUND Then
         Null;
    END;

  • CS6: cannot open any files JPEG, TIFF, PSD, PNG [was:Help!]

    Hey,
    So, I'm a freshmen in college majoring in Simulation and Game Development. Two of my SGD classes features Photoshop. I am trying to continue an assignment that I started at school today, but the Photoshop CS6 (64 bit) that I have on my laptop (which was obtained legally and is a gift from my sister) will not let me open any files. Not, JPEG, TIFF, PSD, PNG, nary a one of the photo types can be opened. It doesn't give me any signs of trouble or error messages. It just wont let me open a file or make a new file. I just sits there in all its power staring me down. Ugh, why must Photoshop all of a sudden despise me so? So, could you all please help me and fast? I have deadlines that must be met!
    Blessings,
    BSE

    Okay, I'm going to say this now. I'm a techinically chanellged artistic person. So, I haven't a clue what a OS is...
    And no I haven't changed anything on my computer lately, except for the updates that the computer does while it's configuring, which is did earlier when I tried the ole restart and hope it works thing. Which sadly, did not do anything to help me.
    Extra Info:
    Computer: Dell Inspiron
    System Operator: Winows 7 Ultimate
    Yes, it's tyhe full version not the trial version.
    It's Photoshop CS6 (64 bit).
    Yes, I've used it before on this computer.
    I've had it for almost 2 maybe 3 months now.  I got it as a gift from my sister the 2nd and 3rd week of he beginning of my Fall semester. We're almost at the end of said semester since 2 to 3 weeks ago I have my midterms, which were all jammed into one week. Tests galore.

  • Error message "unsupported image format" over red screen

    Working my way through a project making corrections to a series of jpegs, when the image preview disappears and turns red with the error message "unsupported image format" in small print over the top, the thumbnail is fine and I know the image to be fine. Move on to the next 2-3 images all with the same message and then the App hangs.
    Force quit and relaunch Aperture and the images are ok again.
    I am assuming that the previews are corrupting and causing this. Oh the app has been hanging intermittently throughout he day, I have trashed both the pref's and the App support folder, but still I get the spinning beach ball.
    Any thoughts?
    Tony

    I just noticed a similar problem. But for me it seems to be only for images referenced from my iPhoto library. I have not seen it yet on images imported directly into Aperture. If I click on a folder of images they appear fine at first, but if I just leave it displaying the first image after a few seconds the image disappears and displays the "unsupported image format" message over a red screen. Or it may display a random icon from somewhere in the application. And then the preview images start changing. Sometimes they change to what looks like system or application icons (arrow, the ratings "star", a printer icon, etc.)
    Peter

  • How do I grab an image (Jpeg) of a Network camera?

    There was a question 3 years ago, which remained unanswered: How do I
    grab an image(JPEG) from the Web(http://) using the datasocket in
    LabView?(http://forums.ni.com/ni/board/message?boa​rd.id=200&message.id=847)
    I have the same problem. I would like to capture the image of an AXIS
    2006 wireless Network Cam with Labview, for further processing. A
    sample image with such a cam is available at:
    http://stareat.it.helsinki.fi/jpg/image.jpg

    If you just want a URL, you can use this example, which someone posted a while back.
    Try to take over the world!
    Attachments:
    Image from web.llb ‏78 KB

  • Problème de mise à l'échelle (non voulue) à l'importation d'images JPEG dans InDesign.

    Bonjour, lorsque j'importe un image JPEG (sans création de bloc image au préalable) celle-ci se voit appliquer une mise à l'échelle qui la réduit, alors qu'elle devrait être importée à 100% de sa taille. Comment éviter cette réduction à l'importation sachant que j'ai ce problème uniquement sur l'import des JPEG ? Merci.
    Voici un exemple du problème : je crée un carré bleu (pour faire simple) sur Photoshop, de 800 pixels de côté, j'aplatie mes calques, j'enregistre en JPEG.
    Lorsque j'importe ce carré bleu dans mon document InDesign (sans avoir créé de bloc image), celui-ci est importé en subissant une mise à l'échelle de 50%
    et il ne fait donc plus que 400 pixels de côté au lieu des 800 pixels. J'ai ce souci qu'avec l'import des JPEG (j'ai re-enregistré ce même carré bleu, en Tiff, en PNG
    ou même en PSD et il est correctement importé à 100 % de sa taille dans InDesign). Pourquoi l'import des JPEG pose t-elle problème avec cette réduction de taille ?
    Y a t-il quelque chose à paramétrer, une option, une préférence ?

    Même pour le résolution le conseil était quand même bien venu car parfois
    on peut passer à côté de choses évidentes^^, mais là j'ai cherché partout,
    j'ai regardé dans les préférences InDesign, j'ai regardé dans les options
    d'importation, j'ai fouillé partout et rien. Je n'avais pas non plus ce problème
    d'import auparavant. Je me dis que c'est peut-être un bug qui est apparu
    soudainement vu que ça fait longtemps que je n'ai pas formaté l'ordi et que
    ça doit être un sacré bazar dans les fichiers systèmes ou dans la base de registre^^.
    En attendant oui je vais utiliser ta solution de créer un bloc image et d'y importer
    l'image puis faire "ajuster le bloc au contenu", c'est ce qu'il me reste de mieux à faire.

  • Downloaded Appleworks 6.2.9 for Mac Updater-2.sim but when i try to open the file i receive the message "legacy image should be updated".  what does this mean and/or entail?

    downloaded Appleworks 6.2.9 for Mac Updater-2.sim but when i try to open the file i receive the message "legacy image should be updated".  what does this mean and/or entail?

    Mavericks is not recognizing the .smi extension - on my Mac it thinks it's a RealPlayer document. You are not going to be able to do anything with this - it requires AppleWorks to be present to be updated, and you can't run AppleWorks on Mavericks (other than by the rather roundabout process of installing Snow Leopard Server in Parallels and installing AppleWorks on that, as described here).

  • Capture images (JPEG) from IP-Camera

    Hey there!
    I have been trying to capture images from an IP-Camera. I understand that this has to be done by using a custom DataSource and I have tried many many example found here on the net, but with no results.
    I think I've tried every piece of code found here at this forum regarding this subject.. :/
    The best I could do was not getting an error while creating a custom DataSource from a BufferedStream..but the when I try to configure/realize the Processor - created with Manager.createProcessor(customdatasource) - it gives me an error which, I think, has something to do with unrecognized content..
    I could post all the examples I tried but I think it would be too much of a confusion so...does anyone have a full working example of code to achieve this? WITH the frame grabber class? plizzzzzzzzz?
    Thanks,
    Edd

    I felt Captfoss' solution was inspired and so gave it a go. The following builds a video from an ip cam jpg stream using a version of Sun's JpegImagesToMovie.java. It is hacked together quickly and with scope for improvement, but it works, proves the idea, and is a good example.
    Run as:- java JpegImagesToMovie -w 320 -h 240 -f 30 -o file:test.avi
    * @(#)JpegImagesToMovie.java     1.3 01/03/13
    * Copyright (c) 1999-2001 Sun Microsystems, Inc. All Rights Reserved.
    * Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
    * modify and redistribute this software in source and binary code form,
    * provided that i) this copyright notice and license appear on all copies of
    * the software; and ii) Licensee does not utilize the software in a manner
    * which is disparaging to Sun.
    * This software is provided "AS IS," without a warranty of any kind. ALL
    * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
    * IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
    * NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
    * LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
    * OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
    * LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
    * INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
    * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
    * OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
    * POSSIBILITY OF SUCH DAMAGES.
    * This software is not designed or intended for use in on-line control of
    * aircraft, air traffic, aircraft navigation or aircraft communications; or in
    * the design, construction, operation or maintenance of any nuclear
    * facility. Licensee represents and warrants that it will not use or
    * redistribute the Software for such purposes.
    * Some public domain modifications by Andy Dyble for avi etc by self and from 
    * other internet resources 19/11/2008. Reads editable 20 ip cam network jpg files.
    * Supported formats tested for compression options. This code could be much improved
    * further to these amendments. Absolutely no warranties. www.exactfutures.com
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.awt.Dimension;
    import javax.media.*;
    import javax.media.control.*;
    import javax.media.protocol.*;
    import javax.media.protocol.DataSource;
    import javax.media.datasink.*;
    import javax.media.format.VideoFormat;
    import javax.media.format.JPEGFormat;
    * This program takes a list of JPEG image files and convert them into
    * a QuickTime movie.
    public class JpegImagesToMovie implements ControllerListener, DataSinkListener {
        public boolean doIt(int width, int height, int frameRate, Vector inFiles, MediaLocator outML, String outputURL)
         ImageDataSource ids = new ImageDataSource(width, height, frameRate, inFiles);
         Processor p;
         try {
             System.err.println("- create processor for the image datasource ...");
             p = Manager.createProcessor(ids);
         } catch (Exception e) {
             System.err.println("Yikes!  Cannot create a processor from the data source.");
             return false;
         p.addControllerListener(this);
         // Put the Processor into configured state so we can set
         // some processing options on the processor.
         p.configure();
         if (!waitForState(p, p.Configured)) {
             System.err.println("Failed to configure the processor.");
             return false;
         // Set the output content descriptor to QuickTime.
         if(outputURL.endsWith(".avi") || outputURL.endsWith(".AVI"))
              p.setContentDescriptor(new ContentDescriptor(FileTypeDescriptor.MSVIDEO));
         if(outputURL.endsWith(".mov") || outputURL.endsWith(".MOV"))
              p.setContentDescriptor(new ContentDescriptor(FileTypeDescriptor.QUICKTIME));
         // Query for the processor for supported formats.
         // Then set it on the processor.
         TrackControl tcs[] = p.getTrackControls();
         for(int i=0;i<tcs.length;i++)
              System.out.println("TrackControl "+i+" "+tcs);
         Format f[] = tcs[0].getSupportedFormats();
         if (f == null || f.length <= 0) {
         System.err.println("The mux does not support the input format: " + tcs[0].getFormat());
         return false;
         for(int i=0;i<f.length;i++)
              System.out.println("Supported Format "+i+" "+f[i]);
    //     tcs[0].setFormat(f[0]);
         if(outputURL.endsWith(".avi") || outputURL.endsWith(".AVI"))     // must be VideoFormat
              System.err.println("Setting the track format to: "     // INDEO50 CINEPAK f[0] etc
                   + tcs[0].setFormat(new VideoFormat(VideoFormat.INDEO50)));
         if(outputURL.endsWith(".mov") || outputURL.endsWith(".MOV"))
              System.err.println("Setting the track format to: "     // JPEG CINEPAK RGB f[0] etc
                   + tcs[0].setFormat(new VideoFormat(VideoFormat.JPEG)));
         //System.err.println("Setting the track format to: " + f[0]);
         // We are done with programming the processor. Let's just
         // realize it.
         p.realize();
         if (!waitForState(p, p.Realized)) {
         System.err.println("Failed to realize the processor.");
         return false;
         // Now, we'll need to create a DataSink.
         DataSink dsink;
         if ((dsink = createDataSink(p, outML)) == null) {
         System.err.println("Failed to create a DataSink for the given output MediaLocator: " + outML);
         return false;
         dsink.addDataSinkListener(this);
         fileDone = false;
         System.err.println("start processing...");
         // OK, we can now start the actual transcoding.
         try {
         p.start();
         dsink.start();
         } catch (IOException e) {
         System.err.println("IO error during processing");
         return false;
         // Wait for EndOfStream event.
         waitForFileDone();
         // Cleanup.
         try {
         dsink.close();
         } catch (Exception e) {}
         p.removeControllerListener(this);
         System.err.println("...done processing.");
         return true;
    * Create the DataSink.
    DataSink createDataSink(Processor p, MediaLocator outML) {
         DataSource ds;
         if ((ds = p.getDataOutput()) == null) {
         System.err.println("Something is really wrong: the processor does not have an output DataSource");
         return null;
         DataSink dsink;
         try {
         System.err.println("- create DataSink for: " + outML);
         dsink = Manager.createDataSink(ds, outML);
         dsink.open();
         } catch (Exception e) {
         System.err.println("Cannot create the DataSink: " + e);
         return null;
         return dsink;
    Object waitSync = new Object();
    boolean stateTransitionOK = true;
    * Block until the processor has transitioned to the given state.
    * Return false if the transition failed.
    boolean waitForState(Processor p, int state) {
         synchronized (waitSync) {
         try {
              while (p.getState() < state && stateTransitionOK)
              waitSync.wait();
         } catch (Exception e) {}
         return stateTransitionOK;
    * Controller Listener.
    public void controllerUpdate(ControllerEvent evt) {
         if (evt instanceof ConfigureCompleteEvent ||
         evt instanceof RealizeCompleteEvent ||
         evt instanceof PrefetchCompleteEvent) {
         synchronized (waitSync) {
              stateTransitionOK = true;
              waitSync.notifyAll();
         } else if (evt instanceof ResourceUnavailableEvent) {
         synchronized (waitSync) {
              stateTransitionOK = false;
              waitSync.notifyAll();
         } else if (evt instanceof EndOfMediaEvent) {
         evt.getSourceController().stop();
         evt.getSourceController().close();
    Object waitFileSync = new Object();
    boolean fileDone = false;
    boolean fileSuccess = true;
    * Block until file writing is done.
    boolean waitForFileDone() {
         synchronized (waitFileSync) {
         try {
              while (!fileDone)
              waitFileSync.wait();
         } catch (Exception e) {}
         return fileSuccess;
    * Event handler for the file writer.
    public void dataSinkUpdate(DataSinkEvent evt) {
         if (evt instanceof EndOfStreamEvent) {
         synchronized (waitFileSync) {
              fileDone = true;
              waitFileSync.notifyAll();
         } else if (evt instanceof DataSinkErrorEvent) {
         synchronized (waitFileSync) {
              fileDone = true;
              fileSuccess = false;
              waitFileSync.notifyAll();
         public static void createInputFiles(Vector files)
              // Create a file for the directory
              File file = new File("images");
              // Get the file list...
              String s[] = file.list();
              files.removeAllElements();     // if any set from arguments
              for(int i=0;i<s.length;i++)
                   if(s[i].indexOf(".jp")!=-1)
                        files.addElement("images"+File.separator+s[i]);     // and to sort if required
                   else
                        System.out.println((i+1)+": "+s[i]+" - ignored");
    public static void main(String args[]) {
         if (args.length == 0)
         prUsage();
         // Parse the arguments.
         int i = 0;
         int width = -1, height = -1, frameRate = 1;
         Vector inputFiles = new Vector();
         String outputURL = null;
         while (i < args.length) {
         if (args[i].equals("-w")) {
              i++;
              if (i >= args.length)
              prUsage();
              width = new Integer(args[i]).intValue();
         } else if (args[i].equals("-h")) {
              i++;
              if (i >= args.length)
              prUsage();
              height = new Integer(args[i]).intValue();
         } else if (args[i].equals("-f")) {
              i++;
              if (i >= args.length)
              prUsage();
              frameRate = new Integer(args[i]).intValue();
         } else if (args[i].equals("-o")) {
              i++;
              if (i >= args.length)
              prUsage();
              outputURL = args[i];
         } else {
              inputFiles.addElement(args[i]);
         i++;
    ///     createInputFiles(inputFiles);
         if (outputURL == null)// || inputFiles.size() == 0)
         prUsage();
         // Check for output file extension.
         if(!outputURL.endsWith(".avi") && !outputURL.endsWith(".AVI") && !outputURL.endsWith(".mov") && !outputURL.endsWith(".MOV"))
              System.err.println("The output file extension should end with a .mov extension");
              prUsage();
         if (width < 0 || height < 0) {
         System.err.println("Please specify the correct image size.");
         prUsage();
         // Check the frame rate.
         if (frameRate < 1)
         frameRate = 1;
         // Generate the output media locators.
         MediaLocator oml;
         if ((oml = createMediaLocator(outputURL)) == null) {
         System.err.println("Cannot build media locator from: " + outputURL);
         System.exit(0);
         JpegImagesToMovie imageToMovie = new JpegImagesToMovie();
         imageToMovie.doIt(width, height, frameRate, inputFiles, oml, outputURL);
         System.exit(0);
    static void prUsage() {
         System.err.println("Usage: java JpegImagesToMovie -w <width> -h <height> -f <frame rate> -o <output URL>");// <input JPEG file 1> <input JPEG file 2> ...");
         System.exit(-1);
    * Create a media locator from the given string.
    static MediaLocator createMediaLocator(String url) {
         MediaLocator ml;
         if (url.indexOf(":") > 0 && (ml = new MediaLocator(url)) != null)
         return ml;
         if (url.startsWith(File.separator)) {
         if ((ml = new MediaLocator("file:" + url)) != null)
              return ml;
         } else {
         String file = "file:" + System.getProperty("user.dir") + File.separator + url;
         if ((ml = new MediaLocator(file)) != null)
              return ml;
         return null;
    // Inner classes.
    * A DataSource to read from a list of JPEG image files and
    * turn that into a stream of JMF buffers.
    * The DataSource is not seekable or positionable.
    class ImageDataSource extends PullBufferDataSource {
         ImageSourceStream streams[];
         ImageDataSource(int width, int height, int frameRate, Vector images) {
         streams = new ImageSourceStream[1];
         streams[0] = new ImageSourceStream(width, height, frameRate, images);
         public void setLocator(MediaLocator source) {
         public MediaLocator getLocator() {
         return null;
         * Content type is of RAW since we are sending buffers of video
         * frames without a container format.
         public String getContentType() {
         return ContentDescriptor.RAW;
         public void connect() {
         public void disconnect() {
         public void start() {
         public void stop() {
         * Return the ImageSourceStreams.
         public PullBufferStream[] getStreams() {
         return streams;
         * We could have derived the duration from the number of
         * frames and frame rate. But for the purpose of this program,
         * it's not necessary.
         public Time getDuration() {
         return DURATION_UNKNOWN;
         public Object[] getControls() {
         return new Object[0];
         public Object getControl(String type) {
         return null;
    * The source stream to go along with ImageDataSource.
    class ImageSourceStream implements PullBufferStream {
         Vector images;
         int width, height;
         VideoFormat format;
         int nextImage = 0;     // index of the next image to be read.
         boolean ended = false;
         float frameRate;
         long seqNo = 0;
         public ImageSourceStream(int width, int height, int frameRate, Vector images) {
         this.width = width;
         this.height = height;
         this.images = images;
              this.frameRate = (float)frameRate;
         format = new VideoFormat(VideoFormat.JPEG,
                        new Dimension(width, height),
                        Format.NOT_SPECIFIED,
                        Format.byteArray,
                        (float)frameRate);
         * We should never need to block assuming data are read from files.
         public boolean willReadBlock() {
         return false;
    byte[] input_buffer;
    byte[] imgbytearray;
    byte[] imgusebyte;
    int camWidth = 320;
    int camHeight = 240;
    URL url;
    long timeStamp;long timeStamp0=System.currentTimeMillis();long resultTimeStamp;
         public boolean urlFetchJPG()
              String ipcamserver = "146.176.65.10";     // examples 146.176.65.10 , 62.16.100.204 , 194.168.163.96 , 84.93.217.139 , 194.177.131.229 , 148.61.171.201
              try
                   url = new URL("http://"+ipcamserver+"/axis-cgi/jpg/image.cgi?camera=&resolution=320x240".trim());
              catch(Exception e){System.out.println("Exception url "+e);}
              try
                   if(input_buffer==null)input_buffer = new byte[8192];
                   if(imgbytearray==null)imgbytearray = new byte[camWidth*camHeight*3];
                   URLConnection uc = url.openConnection();
                   uc.setUseCaches(false);
                   //uc.setDoInput(true);
                   //uc.setRequestProperty("accept","image/jpeg,text/html,text/plain");
                   BufferedInputStream in;
                   int bytes_read;
                   int sumread=0;
                   in = new BufferedInputStream(uc.getInputStream());
                   while((bytes_read=in.read(input_buffer, 0, 8192))!=-1)
                        if(sumread+bytes_read>imgbytearray.length)
                             byte[] imgbytearraytemp = new byte[sumread+bytes_read+8192];
                             System.arraycopy(imgbytearray,0,imgbytearraytemp,0,imgbytearray.length);
                        System.arraycopy(input_buffer,0,imgbytearray,sumread,bytes_read);
                        sumread=sumread+bytes_read;
                   in.close();
                   imgusebyte = new byte[sumread];
                   System.arraycopy(imgbytearray,0,imgusebyte,0,sumread);
              catch(Exception e){System.out.println("Exception urlFetchJPG "+e);}
              return true;
         * This is called from the Processor to read a frame worth
         * of video data.
         public void read(Buffer buf) throws IOException {
         // Check if we've finished all the frames.
         if (nextImage >= 20) //images.size())
              // We are done. Set EndOfMedia.
              System.err.println("Done reading all images.");
              buf.setEOM(true);
              buf.setOffset(0);
              buf.setLength(0);
              ended = true;
              return;
    ///     String imageFile = (String)images.elementAt(nextImage);
         nextImage++;
    //     System.err.println(" - reading image file: " + imageFile);
         // Open a random access file for the next image.
    ///     RandomAccessFile raFile;
    ///     raFile = new RandomAccessFile(imageFile, "r");
         byte data[] = null;
         // Check the input buffer type & size.
    ///     if (buf.getData() instanceof byte[])
    ///          data = (byte[])buf.getData();
              urlFetchJPG();
              data = imgusebyte;
         // Check to see the given buffer is big enough for the frame.
    ///     if (data == null || data.length < raFile.length()) {
    ///          data = new byte[(int)raFile.length()];
              buf.setData(data);
         // Read the entire JPEG image from the file.
    ///     raFile.readFully(data, 0, (int)raFile.length());
    //     System.err.println(" read " + raFile.length() + " bytes.");
         buf.setOffset(0);
    ///     buf.setLength((int)raFile.length());
              buf.setLength(data.length);
         buf.setFormat(format);
         buf.setFlags(buf.getFlags() | buf.FLAG_KEY_FRAME);
    ///          long time = (long)(seqNo * (1000D / frameRate) * 1000000);
              timeStamp = System.currentTimeMillis();
              resultTimeStamp = timeStamp - timeStamp0;
              long time = resultTimeStamp * 0xf4240L;
              buf.setTimeStamp(time);
              buf.setSequenceNumber(seqNo++);
         // Close the random access file.
    ///     raFile.close();
         * Return the format of each video frame. That will be JPEG.
         public Format getFormat() {
         return format;
         public ContentDescriptor getContentDescriptor() {
         return new ContentDescriptor(ContentDescriptor.RAW);
         public long getContentLength() {
         return 0;
         public boolean endOfStream() {
         return ended;
         public Object[] getControls() {
         return new Object[0];
         public Object getControl(String type) {
         return null;
    {code}

  • Sorry I'm new to Final Cut Express. How do you make an image (jpeg file for example) move across the screen slowly as I've seen in many films.

    Sorry I'm new to Final Cut Express. How do you make an image (jpeg file for example) move across the screen slowly as I've seen in many films.

    Neil from bristol wrote:
    … How do you make an image … move across the screen …
    by setting KEYFRAMES
    (read, what FC/e's built-in Help-feature tells about it)
    resize and set pic to start position
    set keyframe
    move playhead in timeline to desired length
    set pic to end position
    set keyframe …

  • All the pictures in my document all of the sudden disappear and I got a message saying images were deleted. A box is left in place of each picture.

    all the pictures in my document all of the sudden disappear and I got a message saying images were deleted. A box is left in place of each picture.

    I did it. By relocated all the songs. Then did my usual sync. Now , all the songs were synced to my Iphone now.:)

Maybe you are looking for

  • GLPCA table not getting updated correctly for VBUND

    Hi All, I have come across one issue that the value of trading partner field (VBUND) in table GLPCA are not getting updated correctly for document type KP. In vendor master this field has different value versus it is showing in GLPCA-VBUND. Does any

  • HTML Forms in MSS in place of ADS

    I am facing the age old problem of Trip Form in EP. Actually I do not need ADS in my system. Hence for that I have done the configuration as per SAP Note 1032311. So HTML forms are working fine in ESS. But in MSS I am facing the problem of the form n

  • Can I sync my outlook from my office PC w/o having iTunes??

    OK...I have tried to search for this but came up with nothing. I have itunes on my PC at home and sync all of my music and videos for my iphone. I have outlook on my PC at work, but no itunes. My job will not allow us to download or intall programs.

  • Excution of a PL/SQL procedure with CURSOR for big tables

    I have prepared a proceudre that uses CURSOR to make a complex query for tables with big number of records, something like 900'000. And the execution failed; ORA-01652:impossible to extend the temporary segment of 64 in the space of storage TEMP. Any

  • Urghhh. Someone please help! Important...

    I have a video presentation due tomorrow, and my iMovie isn't working right. I don't know what's wrong with it. Everything's working fine, except that when I try to drag the clips down onto the timeline (or clip viewer) it doesn't work. Like the clip