Beginner needs simple direction on imaging

Hello,
I need to load a picture of arbitary size and display on a fixed pixel size panel, how do i enable this? Suppose the original picture was bigger than the fixed size, how do i compress the image to the required size? Or what if it was smaller, how do I magnify it? Please give me some directions.
Thank you.
Rt.

import java.awt.*;
import javax.swing.*;
public class Test2 extends JFrame {
  public Test2() {
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Container content = getContentPane();
    MyPanel mp = new MyPanel(new ImageIcon("C:\\duke.gif").getImage());
    content.add(mp, BorderLayout.CENTER);
    setSize(400,400);
    setVisible(true);
  public static void main(String[] args) { new Test2(); }
class MyPanel extends JPanel {
  Image image;
  public MyPanel(Image i) { this.image=i; }
  public void paintComponent(Graphics g) {
    g.drawImage(image, 0,0,getWidth(), getHeight(),this);
}

Similar Messages

  • Need simple directions for backing up manually

    In preparation for upgrading to Leopard, I am in the process of doing a really good backup of all the important things on my hd. I am backing up to an external hd, but for the moment I am doing it manually, not wanting to use backup software. (I will get some in the future, but for now, I really want to learn to do it manually).
    How do I do this, keeping my songs in their respective play lists? Do I just export one playlist at a time, along with the whole music library? I do use the library there in the application, right? Or is their another one I should be using in the home folder or somewhere? I obviously need this explained really simply.
    Many thanks in advance.
    Jane

    Thank you very much. I appreciate the simple, easy to understand answer. I try to keep songs backed up to cd's, but they get kind of scattered. I plan to upgrade to Leopard, and my big fear is that suddenly everything will disappear. That is why I want a copy of everything on an external hd.
    Many thanks again.

  • Beginner needs help with inserting images in applet.

    //  Name: Sachit Harish
    //  Name of Program: HorseRacing
    //  Date Started: May 15, 2003
    //  Date Finished: 2003
    //  Program Description:
    import java.awt.*;
    import java.applet.*;
    public class HorseRacing extends Applet
    //     Button startGameButton;
         InputField betAmountBox;
         Image redHorse; //<---------//
    //     Button[] drawings = new Button[4];      
    //    String[] labels =  {"Face", "Cheese", "Stick", "Mashed Potatoes"};
        //  Method Name: init()
        //  Parameters Passed: None
        //  Data Returned: None
        //  Method Purpose: Where we initialise the InputBoxes and colors.
        public void init()         
          //     startGameButton=new Button("Click to Start Game");
          //     add(startGameButton);
          /*  for(int i=0; i<drawings.length; i++)
                 drawings=new Button (labels[i]);     
         add(drawings[i]);
    inputBoxes();     
    setBackground(Color.gray); //background color
    setForeground(Color.black); //input field text color
    redHorse = getImage(getCodeBase(), "horse_red.GIF"); //<---------//
    // Method Name: paint()
    // Parameters Passed: Graphics variable screen
    // Data Returned: None
    // Method Purpose: Where the programs calls and collects all the methods.
    //                         If high and low are not integers, an error message
    //                         appears.
    public void paint(Graphics screen)
         //screen.drawString("HORSE RACES!!!!!", 40,60);
         //startGameButton.move(50,300);
         betAmountBox.setPosition(115,200);
         startGame();
         if(betAmountBox.isInt())
              int betAmount=getBetAmount();
         else
    screen.drawString("ERROR: You have not entered an Integer!", 10,110);
    screen.drawString(" Please correct your mistake.", 40,125);
         /*int xPos=10;
         int yPos=10;
         for(int i=0; i<drawings.length; i++)
              drawings[i].move(xPos,yPos);
              xPos+=60;
         screen.drawString("Click each button and get a surprise!", 10,50);*/
    // Method Name: inputBoxes()
    // Parameters Passed: None
    // Data Returned: None
    // Method Purpose: Where we initialise the inputboxes, set the size of
    // the InputField and adds it to the screen. Also
    // initialises the InputField to start with 1's
    void inputBoxes()
    betAmountBox = new InputField(5);
    add(betAmountBox);
    betAmountBox.initialise(50);
    // Method Name: getBetAmount()
    // Parameters Passed: Variable number
    // Data Returned: None
    // Method Purpose: Returns the variable number back to the paint()
    int getBetAmount()
    int betAmount=betAmountBox.toInt();
    return betAmount;
    // Method Name: action()
    // Parameters Passed: Event variable evt, Object varible obj
    // Data Returned: Variable true
    // Method Purpose: This block responds when the user takes an action
    // (such as hitting the return key). It causes the paint
    // block to be done again
    public boolean action(Event evt, Object arg)
    Graphics screen=getGraphics();
    if(evt.target instanceof Button)
         if(arg=="Click to Start Game")
              screen.clearRect(0,0,600,600);
              startGame();
    /*if(evt.target instanceOf Button)
                   if(arg=="Face")
                        screen.clearRect(5,55,400,400);
                        faceDrawing();
                   else if (arg=="Cheese")
                        screen.clearRect(5,55,400,400);
                        cheeseDrawing();
                   else if (arg=="Stick")
                        screen.clearRect(5,55,400,400);
                        stickDrawing();
                   else if (arg=="Mashed Potatoes")
                        screen.clearRect(5,55,400,400);
                        potatoeDrawing();
    return true;
    void startGame()
    Graphics screen=getGraphics();
              //Horse Racing Box
              screen.drawRect(10,10,505,120);
              screen.drawLine(60,10,60,130);
              screen.drawLine(10,40,515,40);
              screen.drawLine(10,70,515,70);
              screen.drawLine(10,100,515,100);               
              screen.setColor(Color.red);
              screen.fillRect(11,11,49,29);
              screen.setColor(Color.yellow);
              screen.fillRect(11,41,49,29);
              screen.setColor(Color.blue);
              screen.fillRect(11,71,49,29);
              screen.setColor(Color.orange);
              screen.fillRect(11,101,49,29);
              screen.setColor(Color.black);
              //Betting Box          
              screen.drawRect(10,150,280,100);     
              screen.drawLine(10,185,290,185);
              screen.drawLine(80,150,80,185);
              screen.drawLine(150,150,150,185);
              screen.drawLine(220,150,220,185);
              screen.setColor(Color.red);
              screen.fillRect(11,151,69,34);
              screen.setColor(Color.yellow);
              screen.fillRect(81,151,69,34);
              screen.setColor(Color.blue);
              screen.fillRect(151,151,69,34);
              screen.setColor(Color.orange);
              screen.fillRect(221,151,69,34);
              screen.setColor(Color.black);
              screen.drawString("BET = ", 40,230);
    screen.drawImage(redHorse, 200,200,300,300,this); //<---------//      
    The picture an't showing up... why? First time trying to insert images. (I made arrows where I did stuff with the image.)
    -sachit

    BTW, ignore the buttons and stuff. I just quickly grabbed this file from an earlier button program. :p
    -sachit

  • I just signed up for Netlix...they offered in the "opt out" privacy settings, for me to download, for Firefox users, the Network Advertising Initiative, NAI,..how do I uninstall this, in simple directions please. use my email naumoff@email.unc.edu

    The NAI came to me while in privacy opt out setting signing up for Netflix...I need to uninstall it...I can't find where to do that on my computer. Need simple directions. use email: [email protected] as NAI is strangling my computer and takes forever even on your site, to load a page.

    Attached is Dennis Linam’s Audition – “Log File” and “Log – Last File”
    Contact information Dennis [email protected]
    Previous contact information with your organization (DURIM):
    Dennis - i just finished my audition trial and bought the subscription the 2014 version.
    created by durin in Audition CS5.5, CS6 & CC - View the full discussion 
    DURIM - Okay.  I would expect the "Cache Warning" message because your default directories would not be the same as the ones in the settings file I generated.
    If you go back to the "7.0" directory and open the "Logs" folder, can you copy the "Audition Log.txt" file and send it as an attachment to [email protected]?  We'll take a look in that logfile and see if it gives us more information about why this is failing now.
    Also, do you have any other Adobe applications installed on this machine, such as Premiere Pro?  If so, do they launch as expected or fail as well?
    I do have the trial Pro version of Adobe reader, but I have not activated it, because I fear the same thing will happen did it. I cannot afford to activate the subscription for that product and take the chance of it not working either. I depend on those two programs religiously. Here is the files that you requested. I appreciate any help you can give me to get this audition program started
    Audition Log- file
    Ticks = 16       C:\Program Files (x86)\Common Files\Adobe\dynamiclink\7.0\dynamiclinkmanager.exe
    Sent from Windows Mail

  • Need to print in image with good quality in multiple pages

    rinting of the image display area is to small to read on some large displays
    Need to restrict the image resizing in generating the print output to a minimum size (to allow it to be readable) and allow the printed output to flow into a multiple pages wide by multiple pages in length if necessary. Currently it is restricted to one page.
    below is the code
    public int print(Graphics g, PageFormat pageFormat, int pageIndex) throws PrinterException {
    if (pageIndex != 0)
    return NO_SUCH_PAGE;
    Graphics2D g2d = (Graphics2D) g;
    Rectangle2D.Double printBounds = new Rectangle2D.Double(
    pageFormat.getImageableX(),
    pageFormat.getImageableY(),
    pageFormat.getImageableWidth(),
    pageFormat.getImageableHeight()
    // Print the header and reduce the height for printing
    float headerHeight = printHeader(printBounds, g2d);
    printBounds.y += headerHeight;
    printBounds.height -= headerHeight;
    // Carve off the amount of space needed for the footer
    printBounds.height -= getFooterHeight(g2d);
    // Print the nodes and edges
    printDisplay( printBounds, g2d, 0 );
    if (footer != null) {
    printBounds.y += (printBounds.height + 15);
    printFooter(printBounds, g2d);
    return PAGE_EXISTS;
    =================================
    protected void printDisplay( Rectangle2D.Double printBounds, Graphics2D g2d, double margin ) {
    // Get a rectangle that represents the bounds of all of the DisplayEntities
    Rectangle r = null;
    for (Enumeration e=displayManager.getEntitySet().getEntityEnumerati on();e.hasMoreElements();) {
    DisplayEntity de = (DisplayEntity)e.nextElement();
    if (r == null)
    r = de.getBounds();
    else
    r = r.union(de.getBounds());
    // Get that as doubles, rather than ints, and expand by half the margin
    // height in all directions
    Rectangle2D.Double entityBounds = new Rectangle2D.Double(r.x,r.y,r.width,r.height);
    entityBounds.x -= margin/2;
    entityBounds.y -= margin/2;
    entityBounds.width += margin;
    entityBounds.height += margin;
    // See if height and/or width was specified
    Unit specifiedSize = configuration.getHeight();
    double printHeight = (specifiedSize != null) ?
    specifiedSize.getValueAsPixels((int)printBounds.he ight) :
    printBounds.height;
    specifiedSize = configuration.getWidth();
    double printWidth = (specifiedSize != null) ?
    specifiedSize.getValueAsPixels((int)printBounds.wi dth) :
    printBounds.width;
    // Figure out the ratio of print-bounds to the entities' bounds
    double scaleX = 1;
    double scaleY = 1;
    // See if we need to scale
    boolean canExpand = configuration.expandToFit();
    boolean canShrink = configuration.shrinkToFit();
    if (canExpand == false && canShrink == false) {
    scaleX = scaleY = configuration.getScale();
    else {
    if ((canShrink && canExpand) ||
    (canShrink &&
    (entityBounds.width > printWidth ||
    entityBounds.height > printHeight)) ||
    (canExpand &&
    (entityBounds.width < printWidth ||
    entityBounds.height < printHeight))) {
    scaleX = printWidth / entityBounds.width;
    scaleY = printHeight / entityBounds.height;
    if (configuration.maintainAspectRatio()) { // Scale the same
    if (scaleX > scaleY)
    scaleX = scaleY;
    else
    scaleY = scaleX;
    above methods am using for printing image. but in large display i cant able to read letters.
    Thanks in advance
    Srini

    Your renderer is wrong.... try this (untested):
       class myCellRenderer extends DefaultTableCellRenderer {
         public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int col) {
            if (value!=null) {
              ImageIcon icon = new ImageIcon(image);     // assuming image is defined elsewhere and is accessible
              setIcon(icon);
              setText(value.toString());
            } else {
              setIcon(null);
              setText("");
            return this;
       };o)
    V.V.

  • Need to square various images - some tall, others wide - ideas?

    I have several thousand images. They vary in size and some are tall and others wide.
    I need to have all images square. Not wanting to lose resolution or have smaller images expanded and look bad.
    How can I make all of my images square? Which if any of your programs would do that in a batch process?
    examples:
    An image 200 x 400 end up 400 x 400
    an image 800 x 600 end up 800 x 800
    and so on. Or if anything make them all 600 x 600 wand resize down large images or give white space around smaller images.
    Which program if any will do this?
    thanks,
    Dave         

    Mass resizing tutorial
    So you're wanting uniform size? You can use Image Processor script along with an action to make them all square in 1 simple click of the Run button (after you apply the right settings, of course.) Yes, all however many thousand images you have! We want to get this done in 1 swoop, which is possible, especially since all the images are ending up being the same size. I'm going to hold anyone's hand and do this step by step for anyone who has minimal to expert experience in photoshop. This explanation is very simple to follow.
    1: Preparation to make them square
    Heres the first step for the canvas size to be made uniform and square-y with a simple action. If you don't want square-y but still want uniform, skip this step. Let's say you want to make those thousands of pictures all 600 x 600 pixels. This is the preparation step. Make a new blank document 400 x 400 pixels. Make a new action, and name it Canvas Resize, and hit the record buton to start recording your actions. Change the canvas size to 600 x 600 pixels, and after you do that, stop the action recording. Close the document.
    2: Organize so PhotoShop can process all your photos in 1 swoop
    So we want to make everything 600 x 600. I'm using CS4, but CS3 and CS2 (and probably older versions of PS) all have a feature called Image Processor. This is the time to consolidate all the images you want to process into 1 main folder for an easy 1 click operation. Make two folders on your desktop and label one Pictures and the other Processed. You can either toss all your picture files which you want to process into the Pictures folder for a giant mess, or if you're organized, toss a bunch of organized folders into the Pictures folder, and you can keep your folder organization automatically. I'd recomming copying (NOT moving your pictures, COPYING) and organizing your pictures to be processed in the Pictures folder so that you don't potentially ruin your current organization of your photo archive. I've made my messes before moving files around and trying to figure out where I pulled them from.
    3: Now that we're organized:
    After you've consolidated your files, we will use photoshops Image Processor feature. First, click on File -> Go to Scripts -> Click Image Processor. A dialogue box will pop up with a bunch of options. Section 1 (section numbers are on the left) is "Select Images To Process."  Click the Select Folder button and find the Pictures folder on the desktop with your images in it, and select the folder. Click OK. If your images are in multiple sub-folders inside the Pictures folder, and you want to process everything in each folder, check the Include Sub-Folders box so itll process everything inside. In section 2 of the Image Processor, "Select the Location to Save Processed Images," select where your batch of images is going to be saved. Select the Processed folder for this. If you have your photos organized in a sub-folder folder structure, and want to keep that organization, check the "Keep folder structure" box so it will structure your folders inside the Processed folder the same way it was structured inside the Pictures folder.  Now for the file type. Choose whichever file type you want to save your photos as. Check "Resize to fit", and in the resolutions for width and height, put the same number in both. This will NOT stretch the images, but it will take whichever dimension is larger and scale it your specified number, and keep the aspect ratio the same! For example, say you have an 1800 x 1200 image, which is a 3:2 aspect ratio. If you type 1200 x 1200 in the dimensions, wether vertical or horizontal, it will resize the long dimension of the image to 1200, and the shorter to 800 and keep the 3:2 ratio. Cool, huh? This makes it painfully easy to do thousands of pictures overnight if you want them the same maximum dimension wether vertical or horizontal.
    Now for the magic:
    In section 4, "Preferences" in the Image Processor, you can have PS apply actions to pictures after they've been resized. Ain't that fancy? Check the Run Action box, and select the Canvas Resize action we created earlier. Since we created an action that changes the canvas size to 600 x 600 pixels, the action of making it square will be done all in 1 shot! Any picture 600 x ? will be made into 600 x 600 with whatever color you chose your background to be in recording your action. Now, click the Run button, and your computer will angrily churn all your images into perfect 600 x 600 pixel squares. All numbers I used were for expample only. Pick whatever number you want. If you want 3000 x 3000 squares, punch in 3000 x 3000, make the canvas resize action for it, and go for it!
    Anyone who reads this and tries it, let me know how easy or difficult it was to use this tutorial for you. This method is how I organize the CDs or DVDs which I submit to register my photos to the US Copyright office. I generally make a batch of 800PX JPEGs, images out of all the photos I selected to copyright, burn em, and I'm done within the hour. For my first copyright CD, I made a copyright CD for registration in less than an hour for 4 years of my photographic work.
    And P.S.: Upsizing always dulls or pixelates a photo unless you're going to take the time and enlarge each one with enlarging software, and that's a whole new batch of processing in its own. And.. yes, I wrote this whole tutorial just for this post, lol. I enjoy teaching technical knowledge. Hope this helps and whoever reads this enjoys it!
    -Bruce P.
    -overfocused.com-

  • Need simple instructions on transfering photos from Samsung Gusto phone to computer.

    Need simple instructions on transferring photos from Samsung Gusto phone to my PC.

        smcolvin, happy to help with getting those pictures transferred. As the Samsung Gusto does not have the mass storage functionality, this requires a out of the box solution. You can send the pictures as a picture message and place your email address in the "to" field. Open your email inbox on your computer, open the messages and then download the images to the computer (usually right click and "save as").
    Alternatively, you can send the pictures to the online album and access them there. To send to the online album from your phone, press the left soft key. Message>New Message>Picture message. At the "New Picture Msg" screen, press the Right Soft Key and add "To Online Album." Select "Send." On your computer launch your web browser and log into MyVerizon at verizonwireless.com and then go to vzwpix.com .
    BrianP_VZW
    Follow Us on Twitter @VZWSupport

  • I need to put an image up that looks like tv turned on

    I need to put an image up of a television and have a video of something looping
    in the center the image of the tv would be just that and a player
    would really be under the image playing the video. I am a newbiie and would b very greatful if someone would walk me through this. I prefer to be emailed here at  [email protected] rather than my email used for the forum. Replies here are greatly encouraged because i will be checking back often.

    The skin (just a graphic) is something that can be created in PhotoShop or even in Flash. It needs to be able to have a hole in it for the video to show thru, so use something like a .png graphic with a transparent background. That graphic really has nothing at all to do with the palying of the video... it's just a skin, covering over the top of the video (which is on a lower layer in Flash).
    So use your imagination! Go thru those tutorials listed and you'll be able to add the controls and loader bar. then when you are ready, you can incorporate an xml playlist if you like.
    Here is an example of a simple video player with no skin... just controls and loading bar:
    http://www.exploreolympics.com/index.html
    Here is that same basic video player with a simple graphic placed over the top of the actual video. The graphic is on a higher layer in Flash, and has a hole in it so the video will show thru. This player has an xml playlist added... so the graphic has to cover over that playlist also:
    http://www.cidigitalmedia.com/video.html
    Here is that same simple video player, different type of skin. Open the menu and click on "Trailer" and you'll see a scrolling playlist added to that same simple little vid player.
    http://www.serenityfarmthemovie.com/main18.html
    Here is the code for the simple player. Of course the playlist players have added code to build and access the playlist. But start with the simple player and build on your skill from there.
    /* Video player created by CI Digital Media for educational purposes */
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    video_screen.attachVideo(ns);
    /* Name of your video, with correct path, goes here */
    ns.play("video1.flv");
    /* Comment out this pause line for use with auto start or leave pause to start with Play button */
    ns.pause();
    rewind_btn.onRelease = function() {
    ns.seek(0);
    play_btn.onRelease = function() {
    ns.pause();
    var videoInterval = setInterval(videoStatus,100);
    var amountLoaded:Number;
    var duration:Number;
    // Trace the metadata then remove the last comment tag from code below //
    ns.onMetaData = function(myMeta) {
    for (var i in myMeta) {
      trace(i + ":\t" + myMeta[i])
    /* cut the comment tag from line 35 and paste at end of this line so scrubber will work
    ns["onMetaData"] = function(obj) {
    duration = obj.duration;
    function videoStatus() {
    amountLoaded = ns.bytesLoaded / ns.bytesTotal;
    loader.loadBar._width = amountLoaded * 160;
    loader.scrub._x = ns.time / duration * 160;
    var scrubInterval;
    loader.scrub.onPress = function() {
    clearInterval(videoInterval);
    scrubInterval = setInterval(scrubit,10);
    this.startDrag(false,0,this._y,160,this._y);
    loader.scrub.onRelease = loader.scrub.onReleaseOutside = function() {
    clearInterval(scrubInterval);
    videoInterval = setInterval(videoStatus,100);
    this.stopDrag();
    function scrubit() {
    ns.seek(Math.floor((loader.scrub._x/160)*duration));
    //-------Sound Controls--------//
    this.createEmptyMovieClip("sound_mc",this.getNextHighestDepth());
    sound_mc.attachAudio(ns);
    var videoSound:Sound = new Sound(sound_mc);
    mute_btn.onRelease = function() {
    if (videoSound.getVolume() > 0) {
      videoSound.setVolume(0);     
      else
       videoSound.setVolume(100);
    cidm_btn.onRelease = function() {
    getURL("http://www.cidigitalmedia.com/video.html", "_blank");
    Best of luck!
    Adninjastrator

  • Need to convert an image to .jpeg using Java !

    Hello,
    i am working in images now. i need to convert any image in the form of .jpeg using Java. in other words, i need to store an image in the form of .jpeg format. can any of u help me ! thanks in advance.
    - Krishna

    There's also jimi, at http://java.sun.com/products/jimi/
    You can do something like:
    image = new BufferedImage (width, height, BufferedImage.TYPE_INT_RGB);
    // create your image
    String path = "/path/image.jpg";
    Jimi.putImage(image, path);
    [\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • I need specific directions on how to set up 2 iPads to same iTunes account.

    I need specific directions on how to set up 2 iPads to 1 iTune account.  I want both iPads to receive some things alike - calendar, contacts, etc.  I want same book on both but to open to correct page for each iPad reader.  Games on both but levels for each iPad user.

    It's a really bad idea to post your email address - it's an invitation to spam - and I've asked the Hosts to remove it.
    It sounds as if you have already found the method to change your card details, but just to confirm: go to the iTunes Store. Click 'Account' under 'Quick links' at the right. Log in.
    Where it says 'Payment Information' click on 'Edit' to the right of it.
    You should then be able to enter the correct card details.
    Is this not working? Do you get an error message?

  • I still use Aperture 2.1.4.  I need to export an image file with a CMYK profile.  Whereas a generic CMYK profile is listed in ColorSync Utility, it does not appear on the list of profiles in the edit portion of the export preset dialogue.  Help?

    I still use Aperture 2.1.4.  I need to export an image file with a CMYK profile.  Whereas a generic CMYK profile is listed in ColorSync Utility, it does not appear on the list of profiles in the edit portion of the export preset dialogue.  Help?  Is there some way to add the CMYK profile to the list of choices that are available in the export preset dialogue such that I can choose it?

    leonieDF
    Thanks for your response.  My profiles are located within color sync utility as you can see here:   
    These profiles do not respond to clicking and dragging.  Since they are all in one place, more or less, I'm reluctant to make further attempts to relocate them.  Accessing the CMYK profile is the first difficult experience I've encountered with this arrangement.  I have never needed the CMYK profile until recently, and that need has now past.  However, it remains a mystery to me as to why it does not appear with all the others on the menu of export choices in Aperture 2, or on the menu of profile assignment choices in the Preview application (where again all the other profiles are listed as choices).  I'm beginning to think my current set up will permit me to view an image that was created in CMYK space, but does not easily assign, or convert to that space.  I don't face these restrictions with all the others, so it remains a curious circumstance for me.  I anticipate upgrading my computer and software in the near future which might alleviate this issue altogether.  Again, many thanks for your attention to this matter.  The reach of this community is astounding.

  • JAVA, sqlserver - Need to load an image from the sql server database

    hi,
    I need to load an image from the sql server database using java. I have connected to the database and getting all other records except the records for a photo (datatype = LONGVARBINARY) and Remarks (datatype = LONGVARCHAR).
    I am using java and sql server db. The photo and remarks are stored in the db. and i need to show the image and the remarks fetching them from there.
    I get the error :
    Thread-9 org.hibernate.MappingException: No Dialect mapping for JDBC type: -1
    How can I achieve this?
    Thanks,
    Gargi

    Exactly. And are you using MySQL?
    No. You are using Microsoft SQL server if I have to believe your initial post. A quick google tells me that the dialect class to use is:
    org.hibernate.dialect.SQLServerDialect

  • Need help deleting an image field/pictures in worksheet

    I am in need of help!!! Added photos in an important .pdf document (a worksheet form that was pre-made) and I added image fields (Top box photo and small bottom box for text). I need to delete some image fields now and it won't let me. I upgraded my Adobe Reader to Acrobat XI Pro trial, still can't. If I try to edit image, it says I need to have Live Cycle designer to edit this form. Someone please help! This is my son's Eagle Scout worksheet and needs to be fixed tonight....please

    If the file was created in LiveCycle Designer then it can only be edited
    there.
    It's not clear in what way you edited it originally.

  • In finder do I need to delete all images as I have over 10000

    in finder do I need to delete all images as I have over 10000

    Depends on the size of your hard drive.
    Good practice indicates keeping at least 15% (or 5GB, whichever is larger) of the hard drive unused, to allow the OS to use it for swap files, virtual memory needs, etc. When your drive gets more full than that odd things can start happening - sluggish behavior, program crashes, etc.
    If you are short of hard drive space, by all means dispose of as many files as you can which you don't need on that drive. Either archive them off and then trsh the originals; or just trash the ones you no longer need. Don't forget to empty the trash after dropping things into it - until the trash has been emptied, anything placed in it is not yet gone.
    If you are not short of hard drive space, don't worry about it. Just becuase you have a lot of files means little - it is the effect of the space they occupy, not the quantity, that may be of concern.
    I have over 50,000 image files on my Snow Leopard volume. They occupy about 29GB of drive space. Since that volume has about 500GB of capacity, the space those files consume is not of concern. There is no deleterious effect resulting from their presence on the drive.

  • New to SAP, need some direction

    Hi everyone, pretty much as the title states, I'm brand new to SAP and I need some direction as to what's the best way to start learning it.
    To make my long story short, the company I work for was going to transition from a home-grown Sybase application to SAP Business One. 9 months and $150k later, they decide SAP sucks. Which upsets me because there's about 20 pages of SAP related stuff on all the job hunting sites and I'm always looking to "broaden my horizons" or something like that.
    So now that no one using SAP... I want to start taking it apart and learning how it works. I just have no idea where to begin. I looked at the FAQs and all, but I don't think I'm even at that point yet.
    So how can someone completely new to SAP get started?
    Thanks in advance.
    ~Steve

    Steve,
    As an SAP customer, these are the resources I use on a daily to learn SAP Business One:
    It looks like you've already found the SDN site:
    SAP Business One SDK
    https://www.sdn.sap.com/irj/sdn/developerareas/businessone?rid=/webcontent/uuid/6207e283-0a01-0010-6c84-bacd2745c33f">sap [original link is broken] [original link is broken]
    <a href="https://websmp101.sap-ag.de/~form/sapnet?_SCENARIO=01100035870000000183&_SHORTKEY=01100035870000680298&_ADDINC=011000358700002837782005E&">Education</a> - More eLearning
    <a href="https://websmp101.sap-ag.de/~form/sapnet?_SCENARIO=01100035870000000183&_SHORTKEY=01100035870000680297&_ADDINC=011000358700002837782005E&">Documentation</a> - I recommend the How-To guides
    Here are two other SAP Business One forums (registration required):
    <a href="https://www.sap.com/community/int/forums/ShowForum.epx?ForumID=202&kNtBzmUK9zU">SAP Business One Community</a>
    <a href="http://www.asug.com/DiscussionForums/DiscussionForums/tabid/312/view/topics/forumid/244/Default.aspx">SAP Busines One</a>
    Good luck,
    Mike

Maybe you are looking for