How can i load a image into a midlet?

Hi, i placed the png file together wif the midlet in the src directory.
Image img = Image.createImage("title.png");
I tried the above code but when i try to load the image in got this error
Failed loading image.
anione can help?

just place your file in /res/ directory not in /src/

Similar Messages

  • How can I load preview images into an extra file?

    Hi,
    I've got a question concerning those preview images. I wrote a plugin which uses the actual paths of the photos in the catalog an stores those paths of each photo into a log file. Then an external program has access to that file for further handling. So now I would like to use preview photos instead of the raw images. First, because the user might want to use the picture he/she edited with Lightroom; And then because of the size.Processing a preview image of level 5 would be more efficient than the original photo.
    So how can I get those preview photos? And more important: is it possible to store them in an extra file in a jpg format for instance, so that an external program can make use of them?

    Look at source code in PreviewExporter plugin.
    robcole.com - PreviewExporter

  • How can I insert an image into an mov file in iMovie while keeping the background music?

    I have a short MOV file movie clip that has background music but one of the images (it's a static element with text) is incorrect. How can I replace the image but keep the backgroup the same? Also what size would the image need to be to properly fit?
    Thank you!

    Hi hyue,
    Thanks for visiting Apple Support Communities.
    If you would like to add an image to a project in iMovie for iOS, see this article for helpful steps:
    iMovie for iOS (iPad): Add photos to a project
    http://support.apple.com/kb/PH3171
    All the best,
    Jeremy

  • HT204003 How can I load all giftcards into one

    i have a whole bunch if the same brand giftcards on my passbook how can i put them all into 1

    I have two files the file with the main method has four inner classes.
    i tried to use the jar cvf command but it only jars the file i say to jar the inner classes dont get jared. Is there a way of using one command to jar my two files and include the inner clases that are in one of the files?

  • How can change the hair to an image every time and how can save the edit image into albums give me code

    HI, I am small iphone developer,i have one problem in my app,please give the guidence to me.
    THIS IS MY PROBLEM:
              I HAVE SELECTED ONE PICTURE FROM ALBUMS OR TAKE PICTURE FROM CAM SO I WANT TO CHANGE THE HAIR STYLES PART WITH ANOTHER HAIR STYELS AND SAVE THE PICTURE INTO ALBUMS HOW CAN GENRATE THE CODE OR LOGIC TO ME......I AM TRYING IT FROM 3WEEKS SO COULD YOU PLEASE GIVE ME GUIDENCE TO ME.................

    HI, I am small iphone developer,i have one problem in my app,please give the guidence to me.
    THIS IS MY PROBLEM:
              I HAVE SELECTED ONE PICTURE FROM ALBUMS OR TAKE PICTURE FROM CAM SO I WANT TO CHANGE THE HAIR STYLES PART WITH ANOTHER HAIR STYELS AND SAVE THE PICTURE INTO ALBUMS HOW CAN GENRATE THE CODE OR LOGIC TO ME......I AM TRYING IT FROM 3WEEKS SO COULD YOU PLEASE GIVE ME GUIDENCE TO ME.................
    Sir I am did it by using Objcetive-C code in iphone as fallows
    demoprojectViewController.h
    #import <UIKit/UIKit.h>
    @interface demoprojectViewController : UIViewController<UIImagePickerControllerDelegate,UINavigationControllerDelegate >
        UIImageView *imageView,*editingimage,*maskimage;
         UIButton *takePictureButton;
        UIButton *selectFromCameraRollButton;
        UIView *myview;
    @property(nonatomic,retain)IBOutlet UIImageView *imageView;
    @property(nonatomic,retain)IBOutlet UIImageView *maskimage;
    @property(nonatomic,retain)IBOutlet UIImageView *editingimage;
    @property(nonatomic,retain)IBOutlet UIButton *takePictureButton;
    @property(nonatomic,retain)IBOutlet UIButton *selectFromCameraRollButton;
    @property(nonatomic,retain )IBOutlet UIView *myview;
    - (IBAction)getCameraPicture:(id)sender;
    - (IBAction)selectExistingPicture;
    -(IBAction)pickHair:(id)sender;
    -(IBAction)done;
    -(IBAction)back;
    @end
    demoprojectViewController.m
    #import "demoprojectViewController.h"
    @implementation demoprojectViewController
    @synthesize imageView,editingimage,maskimage;
    @synthesize takePictureButton;
    @synthesize selectFromCameraRollButton;
    @synthesize myview;
    CGFloat lastScaleFactor = 1;
    CGFloat netRotation;
    CGPoint netTranslation;
    NSArray *images;
    int imageIndex = 0;
    - (void)didReceiveMemoryWarning
        // Releases the view if it doesn't have a superview.
        [super didReceiveMemoryWarning];
        // Release any cached data, images, etc that aren't in use.
    #pragma mark - View lifecycle
    // Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
    - (void)viewDidLoad
       // maskimage=[[UIImageView alloc]initWithFrame:CGRectMake(50, 50, 150, 150)];
        //maskimage.image=[UIImage imageNamed:@"1.png"];
        if ([UIImagePickerController isSourceTypeAvailable:
              UIImagePickerControllerSourceTypeCamera]) {
            takePictureButton.hidden = NO;
            selectFromCameraRollButton.hidden = NO;
           UITapGestureRecognizer *tapGesture =
            [[UITapGestureRecognizer alloc]
             initWithTarget:self
             action:@selector(handleTapGesture:)];
            tapGesture.numberOfTapsRequired = 1;
            [maskimage addGestureRecognizer:tapGesture];
            [tapGesture release];
            UIPinchGestureRecognizer *pinchGesture =
            [[UIPinchGestureRecognizer alloc]
             initWithTarget:self
             action:@selector(handlePinchGesture:)];
            [maskimage addGestureRecognizer:pinchGesture];
            [pinchGesture release];
            ///---rotate gesture---
            UIRotationGestureRecognizer *rotateGesture =
            [[UIRotationGestureRecognizer alloc]
             initWithTarget:self
             action:@selector(handleRotateGesture:)];
            [maskimage addGestureRecognizer:rotateGesture];
            [rotateGesture release];
            //---pan gesture---
            UIPanGestureRecognizer *panGesture =
            [[UIPanGestureRecognizer alloc]
             initWithTarget:self
             action:@selector(handlePanGesture:)];
            [maskimage addGestureRecognizer:panGesture];
            [panGesture release];
            //---swipe gesture---
            images = [[NSArray alloc] initWithObjects:
                      @"1.png",
                      @"2.png",
                      @"3.png", nil];
            //---right swipe (default)---
            UISwipeGestureRecognizer *swipeGesture =
            [[UISwipeGestureRecognizer alloc]
             initWithTarget:self
             action:@selector(handleSwipeGesture:)];
            [maskimage addGestureRecognizer:swipeGesture];
            [swipeGesture release];
            //---left swipe---
            UISwipeGestureRecognizer *swipeLeftGesture =
            [[UISwipeGestureRecognizer alloc]
             initWithTarget:self
             action:@selector(handleSwipeGesture:)];
            swipeLeftGesture.direction = UISwipeGestureRecognizerDirectionLeft;
            [maskimage addGestureRecognizer:swipeLeftGesture];
            [swipeLeftGesture release];
        [super viewDidLoad];
    -(IBAction) handleTapGesture:(UIGestureRecognizer *) sender {
        if (sender.view.contentMode == UIViewContentModeScaleAspectFit)
            sender.view.contentMode = UIViewContentModeCenter;
        else
            sender.view.contentMode = UIViewContentModeScaleAspectFit;
    -(IBAction) handlePinchGesture:(UIGestureRecognizer *) sender {
        CGFloat factor = [(UIPinchGestureRecognizer *) sender scale];
        if (factor > 1) {
            //---zooming in---
            sender.view.transform = CGAffineTransformMakeScale(
                                                               lastScaleFactor + (factor-1),
                                                               lastScaleFactor + (factor-1));
        } else {
            //---zooming out---
            sender.view.transform = CGAffineTransformMakeScale(
                                                               lastScaleFactor * factor,
                                                               lastScaleFactor * factor);
        if (sender.state == UIGestureRecognizerStateEnded){
            if (factor > 1) {
                lastScaleFactor += (factor-1);
            } else {
                lastScaleFactor *= factor;
    //---handle rotate gesture---
    -(IBAction) handleRotateGesture:(UIGestureRecognizer *) sender {
        CGFloat rotation = [(UIRotationGestureRecognizer *) sender rotation];
        CGAffineTransform transform = CGAffineTransformMakeRotation(
                                                                    rotation + netRotation);
        sender.view.transform = transform;
        if (sender.state == UIGestureRecognizerStateEnded){
            netRotation += rotation;
    //---handle pan gesture---
    -(IBAction) handlePanGesture:(UIGestureRecognizer *) sender {
        CGPoint translation =
        [(UIPanGestureRecognizer *) sender translationInView:maskimage];
        sender.view.transform = CGAffineTransformMakeTranslation(
                                                                 netTranslation.x + translation.x,
                                                                 netTranslation.y + translation.y);
        if (sender.state == UIGestureRecognizerStateEnded){
            netTranslation.x += translation.x;
            netTranslation.y += translation.y;
    -(IBAction) handleSwipeGesture:(UIGestureRecognizer *) sender {
        UISwipeGestureRecognizerDirection direction =
        [(UISwipeGestureRecognizer *) sender direction];
        switch (direction) {
            case UISwipeGestureRecognizerDirectionUp:
                NSLog(@"up");
                break;
            case UISwipeGestureRecognizerDirectionDown:
                NSLog(@"down");
                break;
            case UISwipeGestureRecognizerDirectionLeft:
                imageIndex++;
                break;
            case UISwipeGestureRecognizerDirectionRight:
                imageIndex -- ;
                break;
            default:
                break;
        imageIndex = (imageIndex < 0) ? ([images count] - 1):
        imageIndex % [images count];
        imageView.image = [UIImage imageNamed:
                           [images objectAtIndex:imageIndex]];
    #pragma mark -
    - (IBAction)getCameraPicture:(id)sender {
        UIImagePickerController *picker =
        [[UIImagePickerController alloc] init];
        picker.delegate = self;
        //picker.allowsImageEditing = YES;
        picker.sourceType = (sender == takePictureButton) ?
        UIImagePickerControllerSourceTypeCamera :
        UIImagePickerControllerSourceTypeSavedPhotosAlbum;
        [self presentModalViewController:picker animated:YES];
        [maskimage removeFromSuperview];
        [picker release];
    - (IBAction)selectExistingPicture {
        if ([UIImagePickerController isSourceTypeAvailable:
             UIImagePickerControllerSourceTypePhotoLibrary]) {
            UIImagePickerController *picker =
            [[UIImagePickerController alloc] init];
            picker.delegate = self;
            picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
            [self presentModalViewController:picker animated:YES];
            [maskimage removeFromSuperview];
            [picker release];
        else {
            UIAlertView *alert = [[UIAlertView alloc]
                                  initWithTitle:@"Error accessing photo library"
                                  message:@"Device does not support a photo library"
                                  delegate:nil
                                  cancelButtonTitle:@"Drat!"
                                  otherButtonTitles:nil];
            [alert show];
            [alert release];
    #pragma mark -
    - (void)imagePickerController:(UIImagePickerController *)picker
            didFinishPickingImage:(UIImage *)image
                      editingInfo:(NSDictionary *)editingInfo {
        imageView.image = image;
        [picker dismissModalViewControllerAnimated:YES];
    - (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker {
        [picker dismissModalViewControllerAnimated:YES];
    - (IBAction)btnSave_Clicked:(id)sender;
        UIImageWriteToSavedPhotosAlbum(editingimage.image, nil, nil, nil);
        //UIImageWriteToSavedPhotosAlbum(imageView.image, nil, nil, nil);
        UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Success" message:@"Image saved successfully to iPhone photo albums..." delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil];
        [alert show];
        [alert release];
    -(IBAction)pickHair:(id)sender;
           //[maskimage setMultipleTouchEnabled:YES];
       // [maskimage setUserInteractionEnabled:YES];
        //[maskimage setContentMode:UIViewContentModeScaleAspectFit];
        maskimage.image=[UIImage imageNamed:@"1.png"];
        [imageView addSubview:maskimage];
    -(IBAction)done
        NSLog(@"hiafjdkfj");
        UIGraphicsBeginImageContext(imageView.image.size); 
        CGRect rect1 = CGRectMake(netTranslation.x,netTranslation.y,maskimage.image.size.width , maskimage.image.size.height);
        CGRect rect = CGRectMake(0, 0, imageView.image.size.width, imageView.image.size.height);
        [imageView.image drawInRect:rect]; 
        [maskimage.image drawInRect:rect1]; 
        UIImage *resultingImage = UIGraphicsGetImageFromCurrentImageContext(); 
        UIGraphicsEndImageContext(); 
        [editingimage setImage:resultingImage];
        [myview addSubview:editingimage];
        [self.view addSubview:myview];
    -(IBAction)back
        [myview removeFromSuperview];
        //[editingimage removeFromSuperview];
    -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
        UITouch *touch = [[event allTouches] anyObject];
        CGPoint location = [touch locationInView:touch.view];
        maskimage.center = location;
    -(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
        [self touchesBegan:touches withEvent:event];
    - (void)viewDidUnload
        self.imageView = nil;
        self.maskimage=nil;
        self.takePictureButton = nil;
        self.selectFromCameraRollButton = nil;
        [super viewDidUnload];
        // Release any retained subviews of the main view.
        // e.g. self.myOutlet = nil;
    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceO rientation
        // Return YES for supported orientations
        return (interfaceOrientation == UIInterfaceOrientationPortrait);
    - (void)dealloc {
        [imageView release];
        [images release];
        [takePictureButton release];
        [selectFromCameraRollButton release];
        [super dealloc];
    @end
    but i can not put the hair to the proper place means on edit image when am saving the image please help meee

  • How to dynamically load an Image into a TableView when its row/cell becomes visible?

    Hi,
    I am building an application that shows tables with large amounts of data containing columns that should display a thumbnail. However, this thumbnail is supposed to be loaded in the background lazily, when a row becomes visible because it is computationally too expensive to to this when the model data is loaded and typically not necessary to retrieve the thumbnail for all data that is in the table.
    I have done the exact same thing in the past in a Swing application by doing this:
    Whenever the model has changed or the vertical scrollbar has moved:
    - Render a placeholder image in the custom cell renderer for this JTable if no image is available in the model object representing the corresponding row
    - Compute the visible rows by using getVisibleRect and rowAtPoint methods in JTable
    - Start a background thread that retrieves the image for the given rows and sets the resulting BufferedImage in a custom Model Object that was used in the TableModel (if not already there because of an earlier run)
    - Fire a corresponding model change event in the EDT whenever an image has been retrieved in the background thread so the row is rendered again
    Btw. the field in the model class holding the BufferedImage was a weak reference in this case so the memory can be reclaimed as needed by the application.
    What is the best way to achieve this behaviour using a JFX TableView? I have so far failed to find anything in the API to retrieve the visible items/rows. Is there a completely different approach available/required that uses the Cell API? I fail to see it so far.
    Thanks in advance for any hints here.

    Here’s what I have tried so far:
    I have defined a property in my model object that contains a weak reference to the image that is expensive to load. I have modeled that reference as an inner class to the object so I have a reference to its enclosing object. That is necessary because my cell factory otherwise has no access to the enclosing model object, which it needs to trigger loading the image in the background.
    The remaining problems I have is, that I don’t have sufficient control over the loading process, i.e. I need to delay the loading process until scrolling has stopped and abort it as soon as the user starts scrolling again and the visible content changes. Imagine that loading an image for a table row (e.g. a thumbnail for a video) takes 200ms to load and a user quickly scrolls through a few hundred records and then stops. With my current set-up, the user has to wait for all loading processes that were triggered in the cell factories to finish until the thumbnails of the records they are looking at will appear (imagine an application like finder to be implemented like that, it would simply suck UX-wise). In my swing application a background thread that loads images for the visible records is triggered with a delay and stopped as soon as the visible content changes. This works well enough for a good user experience. I don’t see how I can do this based on the cell API. It is nice to have all this abstracted away but in this case I do not see how I can achieve the same user experience as in my swing application.
    I also tried registering a change listener to the TreeCell’s visible property to make that control the image loading but I don’t seem to get any change events at all when I do that.
    I must be missing something.

  • How can I insert a image into a BLOB column in a table?

    I am using forms6i against a 10gR2 database and I have one table with a BLOB column and I try to insert a image into this column. I get ORA-01461 error.
    The curious case is that in another table with a BLOB column it works very fine.
    What happens with the first table? How can I avoid the error?
    Thanks in advance.

    Hi hyue,
    Thanks for visiting Apple Support Communities.
    If you would like to add an image to a project in iMovie for iOS, see this article for helpful steps:
    iMovie for iOS (iPad): Add photos to a project
    http://support.apple.com/kb/PH3171
    All the best,
    Jeremy

  • How can I load my Xlet into commercial STB emulator

    Hi
    I have developed some Xlets, and I could run and view the output of those Xlets in XleTView emulator.Now I want to run these xlets in commerial emulators like MHDK STBS .But I don't know how to load these Xlets into that emulator and run
    Any help would be greatly approiated.
    Thanks in advacne.

    hi
    if you want to test Xlets in the same real environment of a digital television, you can use [ OpenCaster|http://www.avalpa.com/the-key-values/15-free-software/33-opencaster] , it's a free software stand-alone carousel server that can do all the DVB tables to and a sample audio video playout server.
    You just need a supported PCI card that can modulate COFDM and drive directly a DVB STB (for DVB-T terrestrial, you could use a [Dektec DTA110T|http://www.dektec.com/Products/DTA-110T/index.asp], BTW i've no business interest with them.. )
    Hope it helps.
    bye
    andrea Venturi

  • How can I load TPX Pantones into CS6 Photoshop palette?

    I use the Pantone papers for Fashion and Home and want to be able to load/download these into my photoshop palette rather than having to print out my designs and then match them to the papers by going tirelessly through the book. I've looked on the Pantone website and their links are useless and seem to be sending me round in circles. Photoshop seems to have every other type of Pantone pre-loaded apart from the TPX ones I need! Can any one help?

    You would need the ACB files from Pantone for the TPX books, and install those in the Photoshop presets folder.
    Sorry, but there are several of the more obscure Pantone books that we haven't shipped yet. (and it takes quite a bit of time to clean up and validate them all)

  • How can I insert an Image into PDF document programmatically?

    I am trying to work with a pdf programmatically through FoxPro using objects:
    createObject(”AcroExch.App”)
    createObject(”AcroExch.AvDoc”)
    createObject(”AcroExch.PDDoc”)
    I am able to open acrobat, add / delete pages, fill in some fields with the “AFormAut.App” object. and finally print the pdf.
    I print Hundreds of books for students in our college, each student gets a book specificaly tailered for the student.
    Everything goes programmatically.
    Now I want to insert images into the pdf, also programmatically.
    I cant find a which object to work with?
    I wish there was a way to do it just as I did with the things i mentioned above.
    Any help would be greatly appreciated.

    Thanks,
    So where do I goet the plugins or how do I know which plugin would enable me
    to work with images?
    Now I got to another thing that I need, I need to flatten pdf
    programmatically, and don't know how.

  • How can i convert an image into gif file as jpeg by using com.sun.image.*

    please help me to convert an image into gif format. i have used sun's impl com.sun.image.code.jpeg package to convert a buffered image into a jpeg file. is there any implementatioln available from sun to handle gif files.

    Many. Try for instance google with 'java image encoders'. Go to the URL http://www.google.com/search?q=java+image+encoders and be amazed of the wonders of modern web search tools.

  • How can i add an image into the header

    When printing a webpage i would like to ad an image into the header? Is this possible?

    Thanks. The triangle was buried in the image. If you hadn’t told me where to look, I would never have found it!
    Michelle
    Michelle Lancto
    Jewish Endowment Foundation
    a division of the Jewish Federation of Western Massachusetts
    Phone: 413-732-9994                Fax: 413-737-4348
    <mailto:[email protected]> [email protected]
    <http://www.jefwesternmass.org/> www.jefwesternmass.org 
    <http://www.jewishwesternmass.org/> www.jewishwesternmass.org
    JEF_Logos_1101_JFWM for email LOW RES
    Confidentiality Notice
    The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.  Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any system and destroy any copies.

  • How can I insert jpeg images into a PDF's Header and Footer?

    International Clients send me a lot of pdf price lists (hundreds).  I want to be able to easily add our letterhead header and footer jpegs to my Acrobat one time so that I can then have them easily placed and printed on each new original document I receive when I (re)print them as a new (compressed) pdf.   This will streamline my work so that when I send them out and they start circulating among Buyers they can clearly see that we are the US contact for XYZ Client?
    Thank you.

    If you add a background or water mark, as opposed to a footer/header, you can specify an image to use.
    You can also use JavaScript to add a custom toolbar button or menu item so that you can easily add the images to a documant, or even in a batch process, using a variety of methods. Post again if you'd like more information.

  • How  can I  load an  image  in a scene?

    I want to load an image in a scene and I have tried it using the
    steve morris example( HAVI example ) , I am using a STB and when I send my xlet I don�t see this imagen at the tv.
    Source code is available from
    http://www.interactivetvweb.org/resources/code/havi/HaviXlet.zip
    Somebody knows another way to do it ???

    I assume you mean a JLabel as an AWT Label cannot display an Image.
    // POINT THE IMAGE BACK TO THE SERVER FROM WHICH THE APPLET WAS DOWNLOADED
    // BY USING GETCODEBASE(). OMIT THAT AND YOU WILL SEE THAT YOU GET A SECURITY
    // EXCEPTION AS THE APPLET WILL TRY TO LOCTE THE IMAGE ON THE LOCAL MACHINE AND
    // APPLETS BY DEFAULT CANNOT ACCESS RESOURCES ON THE CLIENT
    // assumes .gif file exists in same directory as HTML running the Applet
    Image image = getImage(getCodeBase(), "ImageName.gif");
    ImageIcon icon = new ImageIcon(image);
    JLabel - new JLabel(icon);
    // check out the getScaledInstance() method of Image class to resize your image

  • How can i load Metadata file into georaster?

    Hello everybody,
    I stone a tiff file in my db,I stone tiff file like this:
    1.create GeoRaster Table:
    create table rm_image_t(
    georid number,
    file_type varchar2(30),
    image_file mdsys.sdo_georaster);
    2.create trigger:
    exec sdo_geor_utl.createdmltrigger('rm_image_t','image_file');
    3.Create raster data table:
    create table rdt1 of mdsys.sdo_raster(
    primary key(rasterid,pyramidlevel,bandblocknumber,rowblocknumber,columnblocknumber))
    lob(rasterblock) store as (nocache nologging);
    4.Grant:
    exec dbms_java.grant_permission('OPER','SYS:java.io.FilePermission','c:\aaa.tif','read');
    call dbms_java.grant_permission('MDSYS','SYS:java.io.FilePermission','c:\aaa.tif','read' );
    call dbms_java.grant_permission('OPER','SYS:java.io.FilePermission', 'c:\aaa.tif','read' );
    call dbms_java.grant_permission('PUBLIC','SYS:java.io.FilePermission','c:\aaa.tif','read' );
    call dbms_java.grant_permission('MDSYS','SYS:java.io.FilePermission','c:\aaa.tif','read' );
    call dbms_java.grant_permission('OPER','SYS:java.io.FilePermission', 'c:\aaa.tif','read');
    call dbms_java.grant_permission('PUBLIC','SYS:java.io.FilePermission','c:\aaa.tif','read');
    5.Insert tiff file:
    DECLARE
    geor SDO_GEORASTER;
    BEGIN
    -- Initialize an empty GeoRaster object into which the external image
    -- is to be imported.
    INSERT INTO rm_image_t
    values( 1, 'TIFF', sdo_geor.init('rdt1') );
    -- Import the TIFF image.
    SELECT image_file INTO geor FROM rm_image_t
    WHERE georid = 1 FOR UPDATE;
    sdo_geor.importFrom(geor,'blocksize=(512,512) compression=DEFLATE', 'TIFF', 'file','c:\aaa.tif');
    UPDATE rm_image_t SET image_file = geor WHERE georid = 1;
    COMMIT;
    END;
    Then:
    SQL> SELECT t.georid,
    2 sdo_geor.validategeoraster(t.image_file) isvalid
    3 from rm_image_t t order by georid;
    GEORID ISVALID
    1 TRUE
    But I do not know how to load tiff_file's metadata into georaster.
    Can you help me?thanks!

    My metadata file called aaa.met,it has the following info:
    GROUP = METADATA_FILE
         PRODUCT_CREATION_TIME = 2004-02-12T15:09:20Z
         PRODUCT_FILE_SIZE = 703.1
         STATION_ID = "EDC"
         GROUND_STATION = "SGS"
         GROUP = ORTHO_PRODUCT_METADATA
              SPACECRAFT_ID = "Landsat7"
              SENSOR_ID = "ETM+"
              ACQUISITION_DATE = 2001-10-03
              WRS_PATH = 138
              WRS_ROW = 036
              SCENE_CENTER_LAT = +34.6152272
              SCENE_CENTER_LON = +91.7569675
              SCENE_UL_CORNER_LAT = +35.5648302
              SCENE_UL_CORNER_LON = +90.9958720
              SCENE_UR_CORNER_LAT = +35.2772270
              SCENE_UR_CORNER_LON = +92.9740331
              SCENE_LL_CORNER_LAT = +33.9414953
              SCENE_LL_CORNER_LON = +90.5596099
              SCENE_LR_CORNER_LAT = +33.6605964
              SCENE_LR_CORNER_LON = +92.5005228
              SCENE_UL_CORNER_MAPX = 318373.500
              SCENE_UL_CORNER_MAPY = 3937531.500
              SCENE_UR_CORNER_MAPX = 497638.500
              SCENE_UR_CORNER_MAPY = 3903787.500
              SCENE_LL_CORNER_MAPX = 274455.000
              SCENE_LL_CORNER_MAPY = 3758352.000
              SCENE_LR_CORNER_MAPX = 453691.500
              SCENE_LR_CORNER_MAPY = 3724636.500
              BAND1_FILE_NAME = "aaa.tif"
              GROUP = PROJECTION_PARAMETERS
                   REFERENCE_DATUM = "WGS84"
                   REFERENCE_ELLIPSOID = "WGS84"
                   GRID_CELL_ORIGIN = "Center"
                   UL_GRID_LINE_NUMBER = 1
                   UL_GRID_SAMPLE_NUMBER = 1
                   GRID_INCREMENT_UNIT = "Meters"
                   GRID_CELL_SIZE_PAN = 14.250
                   GRID_CELL_SIZE_THM = 57.000
                   GRID_CELL_SIZE_REF = 28.500
                   FALSE_NORTHING = 0
                   ORIENTATION = "NUP"
                   RESAMPLING_OPTION = "NN"
                   MAP_PROJECTION = "UTM"
              END_GROUP = PROJECTION_PARAMETERS
              GROUP = UTM_PARAMETERS
                   ZONE_NUMBER = +46
              END_GROUP = UTM_PARAMETERS
              SUN_AZIMUTH = 147.9348938
              SUN_ELEVATION = 46.4220192
              QA_PERCENT_MISSING_DATA = 0
              CLOUD_COVER = 0
              PRODUCT_SAMPLES_PAN = 17814
              PRODUCT_LINES_PAN = 15754
              PRODUCT_SAMPLES_REF = 8907
              PRODUCT_LINES_REF = 7877
              PRODUCT_SAMPLES_THM = 4454
              PRODUCT_LINES_THM = 3939
              OUTPUT_FORMAT = "GEOTIFF"
         END_GROUP = ORTHO_PRODUCT_METADATA
         GROUP = L1G_PRODUCT_METADATA
              BAND_COMBINATION = "123456678"
              CPF_FILE_NAME = "L7CPF20011001_20011231_04"
              GROUP = MIN_MAX_RADIANCE
                   LMAX_BAND1 = 191.600
                   LMIN_BAND1 = -6.200
                   LMAX_BAND2 = 196.500
                   LMIN_BAND2 = -6.400
                   LMAX_BAND3 = 152.900
                   LMIN_BAND3 = -5.000
                   LMAX_BAND4 = 241.100
                   LMIN_BAND4 = -5.100
                   LMAX_BAND5 = 31.060
                   LMIN_BAND5 = -1.000
                   LMAX_BAND61 = 17.040
                   LMIN_BAND61 = 0.000
                   LMAX_BAND62 = 12.650
                   LMIN_BAND62 = 3.200
                   LMAX_BAND7 = 10.800
                   LMIN_BAND7 = -0.350
                   LMAX_BAND8 = 243.100
                   LMIN_BAND8 = -4.700
              END_GROUP = MIN_MAX_RADIANCE
              GROUP = MIN_MAX_PIXEL_VALUE
                   QCALMAX_BAND1 = 255.0
                   QCALMIN_BAND1 = 1.0
                   QCALMAX_BAND2 = 255.0
                   QCALMIN_BAND2 = 1.0
                   QCALMAX_BAND3 = 255.0
                   QCALMIN_BAND3 = 1.0
                   QCALMAX_BAND4 = 255.0
                   QCALMIN_BAND4 = 1.0
                   QCALMAX_BAND5 = 255.0
                   QCALMIN_BAND5 = 1.0
                   QCALMAX_BAND61 = 255.0
                   QCALMIN_BAND61 = 1.0
                   QCALMAX_BAND62 = 255.0
                   QCALMIN_BAND62 = 1.0
                   QCALMAX_BAND7 = 255.0
                   QCALMIN_BAND7 = 1.0
                   QCALMAX_BAND8 = 255.0
                   QCALMIN_BAND8 = 1.0
              END_GROUP = MIN_MAX_PIXEL_VALUE
              GROUP = PRODUCT_PARAMETERS
                   CORRECTION_METHOD_GAIN_BAND1 = "CPF"
                   CORRECTION_METHOD_GAIN_BAND2 = "CPF"
                   CORRECTION_METHOD_GAIN_BAND3 = "CPF"
                   CORRECTION_METHOD_GAIN_BAND4 = "CPF"
                   CORRECTION_METHOD_GAIN_BAND5 = "CPF"
                   CORRECTION_METHOD_GAIN_BAND61 = "CPF"
                   CORRECTION_METHOD_GAIN_BAND62 = "CPF"
                   CORRECTION_METHOD_GAIN_BAND7 = "CPF"
                   CORRECTION_METHOD_GAIN_BAND8 = "CPF"
                   CORRECTION_METHOD_BIAS = "IC"
                   BAND1_GAIN = "H"
                   BAND2_GAIN = "H"
                   BAND3_GAIN = "H"
                   BAND4_GAIN = "L"
                   BAND5_GAIN = "H"
                   BAND6_GAIN1 = "L"
                   BAND6_GAIN2 = "H"
                   BAND7_GAIN = "H"
                   BAND8_GAIN = "L"
                   BAND1_GAIN_CHANGE = "0"
                   BAND2_GAIN_CHANGE = "0"
                   BAND3_GAIN_CHANGE = "0"
                   BAND4_GAIN_CHANGE = "0"
                   BAND5_GAIN_CHANGE = "0"
                   BAND6_GAIN_CHANGE1 = "0"
                   BAND6_GAIN_CHANGE2 = "0"
                   BAND7_GAIN_CHANGE = "0"
                   BAND8_GAIN_CHANGE = "0"
                   BAND1_SL_GAIN_CHANGE = "0"
                   BAND2_SL_GAIN_CHANGE = "0"
                   BAND3_SL_GAIN_CHANGE = "0"
                   BAND4_SL_GAIN_CHANGE = "0"
                   BAND5_SL_GAIN_CHANGE = "0"
                   BAND6_SL_GAIN_CHANGE1 = "0"
                   BAND6_SL_GAIN_CHANGE2 = "0"
                   BAND7_SL_GAIN_CHANGE = "0"
                   BAND8_SL_GAIN_CHANGE = "0"
              END_GROUP = PRODUCT_PARAMETERS
              GROUP = CORRECTIONS_APPLIED
                   STRIPING_BAND1 = "NONE"
                   STRIPING_BAND2 = "NONE"
                   STRIPING_BAND3 = "NONE"
                   STRIPING_BAND4 = "NONE"
                   STRIPING_BAND5 = "NONE"
                   STRIPING_BAND61 = "NONE"
                   STRIPING_BAND62 = "NONE"
                   STRIPING_BAND7 = "NONE"
                   STRIPING_BAND8 = "NONE"
                   BANDING = "N"
                   COHERENT_NOISE = "N"
                   MEMORY_EFFECT = "N"
                   SCAN_CORRELATED_SHIFT = "N"
                   INOPERABLE_DETECTORS = "N"
                   DROPPED_LINES = N
              END_GROUP = CORRECTIONS_APPLIED
         END_GROUP = L1G_PRODUCT_METADATA
    END_GROUP = METADATA_FILE
    END
    I want load it into db and query the tif_file use coordinates.
    Can you pls tell me how to do it?

Maybe you are looking for