Loading images JPEG  URGENT!!!!

Hi every body,
I have a problem and I need your help.
I have to calculate images, in fact I have to load several jpg imageswhich own each one a different name.after I have to calculate for each pixel of each image number of colour,green blue red(RGB) and thanks to a math formula I give for each image a reference.
The problem is that I have to load 300 images.I thought to use a board object(" [] ") but I don't know how can I load each image with a loop for exemple.
So do you knows the solution for my matter.It is very urgent.
Thank you very much.
jerebella

Do you mean you want to know how to load 300 images into a structure? Or you have X images and dont know what type of structure can dyanamically hold them?
String Image = "Image"
String EXT = ".JPG"
Vector images = new Vector(300);
For (int i=0; i == 300; i++)
// Determine the type of object to store them in a vector maybe?
// Ive not got the book handy to remember how to load the image but
// once loaded you can add them like this
Thats something to go on but its been awhile and I dont have my refernce book handy
sorry i cant be off more help.

Similar Messages

  • OUT OF MEMORY - during loading images (JPEG's)

    Hallo,
    We use the OHJ (version 4.1.12) inside a Java/Swing application with JDK 1.3.1.
    Our online help contains a lot of larger JPEG images. When the user navigates through the online help - an out of memory occurs while loading the images.
    I tried to split the help pages in a lot of small HTML pages, but this doesn't help. It seems that the OHJ does not clear the memory
    when loading the next HTML page.
    Can the OHJ deal with larger images ?
    Any other possibilities ?
    Thanks
    Markus Pohle

    >
    It seems that the OHJ does not clear the memory when loading the next HTML page.
    Can the OHJ deal with larger images ?
    We have never seen such a problem with large images and OHJ. Could you send us a ZIP containing your help content by e-mail to [email protected] so that we can try to reproduce it?
    Thanks,
    -brian

  • When i use IE9, i go to my emails and any pics in the mail open with the mail but with FF i have to download them is there a way to make the pics open in the mail, i set yahoo to load images automatically in the options menu this has had no effect, thanks

    some pictures(jpeg or gif) come as part of email if i use IE9 these images open as part of the mail, but with firefox i have to download them separately and then they don't appear in email. i have been in the options menu and allowed yahoo.com to automatically load images but this has had no effect, thanks

    Sounds like you did this on the fly.
    MM is supposed to open the Marker Panel Dialogue
    M just sets a marker
    Not sure if either are intended for on the fly during playback .
    There is also a Marker Icon on the Source Window Pane  >>

  • Load Image in Forms 10g

    Dear All
    I want to load image from hard Disk to data base in forms 10g.
    I have a Image item and Browse button in my forms and in database it is a BLOB column.
    I need when i click on Browse Button then it will open the browse window and you can select on that.
    How to do ? Urgent , please help me .
    Thank you.

    or
    try this.
    declare
    l_file_name varchar2(383);
    begin
    l_file_name := webutil_file.file_open_dialog( );
    if
      l_file_name is not null
    then
      if
        :block.rowid is not null
      then
        create_record;
      end if;
      client_image.read_image_file ( l_file_name, substr ( l_file_name, instr ( l_file_name , -1 ) ), 'images.images' );
    end if;
    end;Note:- u have to attach webutil.pll without library it will not work.
    Sarah

  • Memory limitation to load a Jpeg

    Hi all,
    I want to use the loader component to load an image within my
    Flash lite movie, when I try to do it with a Jpeg (612pix X 792 pix
    / 96dpi X 96dpi), the device emulator says me in runtime:
    Problem with content: 11 - Not enough memory available to
    decompress
    if I do the same with another Jpeg (533pix X 526 pix / 96dpi
    X 96dpi) there is no problem.
    My question is: what are the memory limitations to load and
    to display an Image (Jpeg or bitmap)?

    Hi Thamis,
    Take a look at the flash.net.FileReference class here:
    http://livedocs.macromedia.com/flex/2/langref/index.html
    This is the built in Flash support for file upload. You'd
    handle the upload with a servlet/jsp/etc. server-side component to
    save it to disk or as binary data in a database.
    Best,
    Seth

  • Loading Images CS5 32 & 64 bit

    When I load an image (jpeg etc) into Photoshop it shows up in the layers palet as a background but does not show in the workspace, where I see a chequered background. How do I overcome this? What am I missing?
    This is the trial version of CS5 Extended on Windows 7
    Thanks
    Colin

    You are right on the money:  You have an old graphics card, and if I recall correctly nVidia hasn't updated drivers for that one in a while (i.e., you have old bugs that have been fixed with newer cards).
    Keep in mind that the accelerated OpenGL implementation is in the video driver, and Photoshop likely asks more than your card and driver can deliver.
    A good card for Photoshop delivers a benchmark score of about 500 or better on this site:  http://www.videocardbenchmark.net/gpu_list.php
    The good news is that pretty decent graphics cards can be bought for well under a hundred bucks at the local high tech store (e.g., CompUSA or Best Buy).  For example, an ATI Radeon HD 4670 with 1 GB of GDDR3 was about $60 when I looked about a month ago.  A new card will definitely improve your computing experience, and not just with Photoshop.
    -Noel

  • Loading images using TOAD

    Hi,
    can someone help me?
    I'd like to create a simple database that contains images. I've already used the Oracle DB tutorial, but at the moment it's difficult for me to load an image correctly using TOAD.
    Can someone give me a simple code (mine does'nt work!) for fetching gif or jpeg. Can you show me links for find documentation?
    Tanks

    Thank you Felix!
    I tried to use this code to fetch image into database but TOAD always gives me error:
    DECLARE
    l_bfile BFILE;
    l_blob BLOB;
    BEGIN
    INSERT INTO tab1 (col1)
    VALUES (empty_blob())
    RETURN col1 INTO l_blob;
    l_bfile := BFILENAME('IMAGES', 'image.jpeg');
    DBMS_LOB.fileopen(l_bfile, Dbms_Lob.File_Readonly);
    DBMS_LOB.loadfromfile(l_blob, l_bfile, DBMS_LOB.getlength(l_bfile));
    DBMS_LOB.fileclose(l_bfile);
    COMMIT;
    END;
    I don't understand what's wrong, TOAD does'nt execute fileopen() operation at the moment.
    Do you know an easy way to solve this problem? Where can I find some documentation about BLOB using TOAD?
    Thank a lot!

  • Load image from a cursor .cur file.

    Hi all,
    I want to create a customized cursor, and I have a Microsoft cursor .CUR file. Can I load this .cur file as an image? - Thank you
    Edited by: trangkd on Aug 9, 2011 3:08 PM

    Hi,
    I've been google-ing up-and-down, but couldn't find any implementation of .cur and Java. If anyone has done so, please post... I was looking for an easy way i.e. couple lines of code to load image from a .cur file .. like we do with gif or jpeg out of the box. The JIMI has an extensive support of many other formats, and it will be an alternative if the graphics department won't give us a new set of cursor images in gif/jpg format.
    Thanks so much.

  • AS3 parent loading in AS2 child that in turn loads in jpegs *Problem*

    Hiya everybody.
    I'm getting a bald patch on my head from frustration with the following problem.
    I have a parent AS3 swf which loads in a AS2 swf like so;
    stop();
    var ldr:Loader = new Loader();
    ldr.load(new URLRequest( "as2child.swf"));
    addChild(ldr);
    contained in the AS2 file is the following script which loads in jpegs when the user clicks the next button, etc.
    //stuff that loads in different photos
    stop();
    var i:Number = 1;
    //load first image straight away.
    function initialloadup () {
    i = 1;
    startLoading("pic"+i+".jpg");
    initialloadup();
    next_btn.onRelease = function () {
    /*on clicking next image button load next image in sequence*/
    i++;
    if (i > 11 ) {i = 1};
    startLoading("pic"+i+".jpg");
    trace("pic"+i+".jpg");
    prev_btn.onRelease = function () {
    //on clicking previous image button load prev image in sequence
    i--;
    if (i < 1 ) {i = 11};
    startLoading("pic"+i+".jpg");
    function startLoading(whichImage) {
    loadMovie(whichImage, "imageLoader");
    however when you view the AS2 swf via the AS3 swf it does not seem to load in the jpgs when requested.
    I need to retain the AS2 file so cannot rewrite in AS3 as the image loading thing is only a small part of the AS2 file.
    Any ideas? might it be to do with how the AS2 is read in AS3?
    Cheers for your reading this
    Melacroso

    Hi Ned,
    Cheers for your thoughts. I've heard of the lockroot thingymajig. Tried it out but to no avail.
    I've attached a zip file containing the fla's and swf's and jpgs, just incase anyone yourself included might have anymore ideas.
    Thanks for your time
    Alec

  • Problem loading Image through XML!

    Hi,
      I am Akshay and am beginner in this forum. I am trying to load images using flickr API and having problem.
    I am doing it in following fashion:
    1) I am calling the Httpservice to get the xml through flickr API as
    <s:HTTPService id="photoService" url="http://api.flickr.com/services/feeds/....FullAPI" resultFormat="e4x" result="photoResultHandler(event);" fault="photoFaultHandler(event);"/>
    2) In photoResultHandler I am retrieving the XML
    private function photoResultHandler(re:ResultEvent):void
    photoXml= re.result as XML;
    However, I am struggeling to retireve elements from photoXML and then use it to display image in :
    <mx:Image  id="img0" x="151" y="98" width="520" height="291"/>
    The XML structure is as below:
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <feed">
    <entry>
         <author>  </author>
         <link rel="enclosure" type="image/jpeg" href="http://farm5.static.flickr.com/4484460580_04bbced2d8_o.jpg"/>
    </entry>
    <entry>
    </entry>
    I need to load the href value of link  which can be found in feed-->entry-->link in the above xml.
    Please help!
    -Akshay

    Hello Dave,
       Thanks for your prompt reply. Here's the mxml code :
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" creationComplete="photoService.send()"  minHeight="600">
    <fx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.events.FlexEvent;
    import mx.events.MoveEvent;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    [Bindable]
    public var photoXml:XML;
    private function photoResultHandler(re:ResultEvent):void
    photoXml= re.result as XML;
    //var src :int =  "{photoXml.feed.entry.updated}" as int;
    img0.source= String(photoXml.entry[0].link[1].@href);
    private function photoFaultHandler(fe:FaultEvent):void
    Alert.show(fe.fault.message);
    ]]>
      </fx:Script>
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    <s:HTTPService id="photoService" url="http://api.flickr.com/services/feeds/photos_public.gne?id=48951865@N07" resultFormat="e4x" result="photoResultHandler(event);" fault="photoFaultHandler(event);"/>
    </fx:Declarations>
    <mx:Image  id="img0" x="151" y="98" width="520" height="291"/>
    </s:Application>
    Hope it helps you in finding out the problem...DO let me know your thouhgts
    Thanks again for your replies so far......
    -Akshay

  • Image (jpeg, gif) display in AWT layout manager

    Goodmorning All,
    I am looking for some help, a hint on my AWT Layout challenge i have.
    Example GUI_1:
    =========================
    Window border..................[_][x]..
    =========================
    [label]....|display_area|....[button].
    [label]....|display_area|....[button].
    ...............|display_area|....[button].
    ...............|display_area|....[button].
    ...............|display_area|..................
    =========================
    ...........................................[QUIT].....
    =========================
    I want to
    - display a picture in the "display area" of the this GUI
    - put labels left of it with some text
    - put a couple of buttons right of it, through which i am able to manipulate the image
    Questions:
    *1. Is it (even) possible to display an (jpeg,gif) image in the "display area" while using a layout manager?*
    Surfing over the internet...so far i only have found applet-examples that use the full gui surface of the applet to display an image via the g.drawImage (imagename, x,y); without any gui elements (labels, buttons) beside it.
    *2. What kind of AWT gui element do i need at the location of the "display area"?*
    Is is possible to use a CANVAS or do i need somethen else? (e.g. glue an image on a button)
    *3. Is is possible to display an ANIMATION (series of sequences jpeg, gifs) in the display area?*
    I already found out how to locate and load the images (via mediatracker).
    Now i need to find a way to "paint" the loaded images in the GUI.
    *4. Is this even possible with AWT layout or do i need to switch to SWING layout?*
    I have not used Swing yet, cause i'm working my way up through the oldest gui technologie first.
    *5. Do know any usefull websites, online tutorials (on awt and displaying images) that can help me tackle my challenge?*
    Thank you very much for your hints, tips and tricks

    A link as Gary pointed out is the best way to see what the problem may be.
    Did you save the image to your working folder and have you defined a site pointing to this folder.
    Defining a site helps Dreamweaver track and organize the files used in this site.
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14028
    If you can't see the image, this means that the path to the image is incorrect.
    Nadia
    Adobe Community Expert : Dreamweaver
    Unique CSS Templates | Tutorials | SEO Articles
    http://www.DreamweaverResources.com
    Web Design & Development
    http://www.perrelink.com.au
    http://twitter.com/nadiap

  • Loading Images Dynamically from MySql

    Hello
    I need to load images in my swf file dynamically from MySql
    using PHP. Brief is I have one Swf file and and i want to animate
    image in it but image should be come from dynamic path.. anybody
    can tell me how to do this? if you want more brief then i can
    provide it but it is urgent...
    Thanks in advance

    I'm afriad I don't have a solution to your problem but I was
    curious as to why you would load it from a database vs a directory.
    I know you can have users upload to a directory and a database but
    I don't understand the benifit since I think you'd be adding load
    on the database server. Is it a server side image manipulation
    thing?

  • Load image from SQL database with ASP?

    Hello,
    Does anyone know a tutorial where you can load an image from
    a SQL database ?
    I would like to show this image in Flash, but i don't know
    how to load in from a SQL database using ASP.
    Regards,
    Micheal

    Flash cannot load images from an SQL database.
    Flash can load JPEG, PNG, GIF, SWF, MP3, and FLV files.
    An SQL database can be used to store the file names and their
    location. ASP can retrieve that data from the SQL and return to
    Flash to load the above file formats.
    For Flash to do the communication with ASP you need to
    determine if you are using URL Encoded or XML data structures.
    For URL Encoded data you look at
    LoadVars.sendAndLoad
    For XML Encoded data you look at
    XML.sendAndLoad
    Then in their onLoad methods you use
    MovieClip.loadMovie
    to load JPEG, GIF, PNG and SWF;
    Sound.loadSound
    for MP3,
    NetConnection.connect,
    Video.attachVideo and NetStream.play for FLV.
    For the ASP side the work with the database has nothing to do
    with Flash other than using any search variable sent from Flash
    with LoadVars.sendAndLoad or XML.sendAndLoad. In other words it
    could be an HTML form sending the same variable and calling the
    same ASP script. Same with returning values except with Flash only
    URL Encoded or XML data structures are sent back and not
    HTML.

  • How could I load image via a Form when it is in runtime by not using default block

    1. How could I load image from my local computer to the database via a Form when it is in runtime?
    2. And how to display the image stored in the database on a Form ?
    Thanks buddy ~
    A nice member answered this question already, but I want to know how could I do it by using manual create block instead of using database item directly~
    Could anyone help me pls~

    This is the only way I know right now:
    1) Create this table
    SQL> desc av_data
    Name Null? Type
    BLOB_ID NOT NULL NUMBER(10)
    BLOB_TYPE NOT NULL VARCHAR2(10)
    DESCRIPTION NOT NULL VARCHAR2(25)
    BLOB_DATA LONG RAW
    2) On form create a button with this 'when-btn-prssed' tgr:
    DECLARE
         v_dirname          VARCHAR2(255);
         v_filename          VARCHAR2(255);
    BEGIN
         v_dirname := 'C:\';
         v_filename := get_file_name(v_dirname, NULL,
         'Bitmap file (*.bmp)|*.bmp|'                    ||
         'JPEG file (*.jpg)|*.jpg|'          );
         IF v_filename IS NOT NULL THEN
    read_image_file(v_filename, 'ANY',
    'av_data_image.blob_data');
         END IF;
    END;     
    3) Add this pre-insert trigger too :
    :av_data_image.blob_type := 'IMAGE';
    Sorry if this is not exactly the answer you're looking for.
    Bob

  • Loading external jpegs

    I have a page that loads external jpegs... however it seems
    totake longer to retireve and display/load the images going through
    flash than it does if i were to display them as html...why is
    this... or am I just wrong. thanks J.

    thanks kglad,...
    the website i have is purely in flash. It communicates with a
    mysql database using php. However as well as being slow at loading
    external jpegs it is also very slow at retrieving and loading data
    from the database.
    When I test the site locally it runs very fast.
    If this was a problem with my scripting (php) wouldn't i
    notice this slowdown when I tested locally?, therefore is the
    problem with my server opposed to my scripting.
    thanks J.

Maybe you are looking for