Problem in image?

Hi
I am trying to upload an image into server.I have selected image from filesystem and displayed into screen(from server).
My problem is when the image size is greater than 10kb(like my pictures in windows),i will get scroll bars in my front end.
How to remove these scroll bars?
Regards
D.Mahesh Babu

Hi,
If you are using Image control to display the image, set maxWidth and maxHeight so that the image will scale down if it is bigger than the max values

Similar Messages

  • Problem with Image file

    Hi,
    Iam facing with one problem.I have one swing interface through which I can upload files(back end servlet programme).Now I can upload all types of file but problem with image file it uploading perfectly that means size of the uploaded file is ok but its format damaged.It can not be open.My backend servlet programme is ok coz i tested it with html form it is working perfectly.Problem with swing interface.Plz guide me where I done a mistake.Below r my codes:-
    ImageIcon Upload=new ImageIcon("images/Upload.gif");
         Button=new JButton(Upload);
         Button.setToolTipText("Upload");
    Button.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent e)
              int returnVal = fc.showOpenDialog(ActionDemo4.this);
              if (returnVal == JFileChooser.APPROVE_OPTION) {
              File file = fc.getSelectedFile();
    String aa=file.getAbsolutePath();
              textArea3.append(aa);
                   textArea2.append("Local URL:");
    long l=file.length();
              try
              byte buff[]=new byte[(int)file.length()];
              InputStream fileIn=new FileInputStream(aa);
              int i=fileIn.read(buff);
              String conffile=new String(buff);
              String str1=textArea10.getText();
    url = new URL ("http://127.0.0.1:7001/servletUpload?x="+str1);
         urlConn = url.openConnection();
         urlConn.setDoInput (true);
         urlConn.setDoOutput (true);
         urlConn.setUseCaches (false);
         urlConn.setRequestProperty("Content-Type","multipart/form-data;boundry=-----------------------------7d11e410e500f2");
         printout = new DataOutputStream (urlConn.getOutputStream ());
    String content ="-----------------------------7d11e410e500f2\r\n"+"Content-Disposition: form-data;"+"name=\"upload\"; filename=\""+aa+"\"\r\n"+"Content-Type: application/octet-strem\r\n\r\n\r\n"+conffile+"-----------------------------7d11e410e500f2--\r\n";
    printout.writeBytes(content);
    printout.flush ();
    printout.close ();
    Best Regards
    Bikash

    The errors are here:
              byte buff[]=new byte[(int)file.length()];
              InputStream fileIn=new FileInputStream(aa);
              int i=fileIn.read(buff);
              String conffile=new String(buff); (conffile is a String object containing the image)
    and here:
    String content ="-----------------------------7d11e410e500f2\r\n"+"Con
    ent-Disposition: form-data;"+"name=\"upload\";
    filename=\""+aa+"\"\r\n"+"Content-Type:
    application/octet-strem\r\n\r\n\r\n"+conffile+"--------
    --------------------7d11e410e500f2--\r\n";
    printout.writeBytes(content);conffie is sent to the server but
    it's non possible to treat binary data as String!
    Image files must be sent as byte[] NOT as String ......

  • I just installed my CS5.1 on my new Lenovo Laptop Win 8.1. Problem -- On Image Adjustments none of the adjustment options respond.

    I just installed my CS5.1 on my new Lenovo Laptop Win 8.1. and everything worked for a day. On day 2 I ran into Problems -- On > Image >Adjustments none of the adjustment options respond. None of the toolbar functions such as >Crop etc respond.
    I then installed the same download on my PC and everything works as it should.
    Can anybody help please
    Roland

    Notebook Info
    1 x Lenovo G710 Notebook, Intel® Core™ i5, 43,9 cm (17,3 "), 1000 GB HD,
    Intel Core i5-4210M 2,60 GHz, (Turbo-Boost 2.0 bis 3,20 GHz)
    43.9 cm (17.3") 900p (HD+) LED-Display (1600 x 900)
    8192 MB DDR3-RAM
    Harddisk: 1000GB SATA
    NVIDIA N15V-GM mit 1GB DDR3
    Prefs
    As per download settings, I changed nothing
    Image Info
    Jpg conv.from RAW Canon, dim. 4746x3567, 6,64 Mb
    The software worked on the first day, problems appeared next day. I uninstalled and deleted the exe.file, then redownloaded and reinstalled but same problem persists.
    I then downloaded and installed on my PC and everything works.
    Regards Roland

  • Problem with images opened in Photoshop CS 5

    Hi, I have a problem with images that I open in Photoshop CS 5. F. ex. I opened
    the following image:
    The image appears with a purple color in Photoshop. If I hover over the image
    with a tool like lasso, it temporarily regains it´s original color. The image mode is RGB Color, 8 Bits/Channel.
    I resetted the start settings of Photoshop with the CTRL-Shift-Alt-combination, which had no effect.

    The confusion arises from the imprecise error message in the Preferences > Performance dialog box, to wit:
    OK, that seems to be open to misunderstanding indeed.
    The video card: Citrix Systems Inc. Display Driver.
    Could not find a list for CS6 specifically, but the card may fall short.
    http://helpx.adobe.com/photoshop/kb/tested-video-cards-photoshop-cs5.html
    If I invoke View > Proof Colors, the only thing that changes is that the text in the brackets
    Also if you set View > Proof Setup to something different?
    Boilerplate-text:
    Are Photoshop and OS fully updated and have you performed the usual trouble-shooting routines (trashing prefs by keeping command-alt-shift/ctrl-alt-shift pressed while starting Photoshop, 3rd party plug-ins deactivation, system maintenance, cleaning caches, font validation, etc.)?

  • Mosaic problem with image after Yosemite

    I'm using CS6 (13.0.6) on my iMac and recently upgraded to Yosemite.  I'm now getting a problem where images will suddenly either go black or get a weird mosaic/jigsaw type of look.  In the example below, the "source" images used in the mosaic were files that I had recently closed - so it isn't just a scrambled version of the correct image (if that makes sense).
    Once this happens, the only fix is to close out Photoshop and start over.  Anyone else having this problem?  Any fixes?
    Thanks for any help or suggestions!

    Interesting…Turning off "Use Graphics Processor" returns the magnifying glass to previous Photoshop method of dragging a marquee to zoom, instead of zooming from the point of click.
    So, this is February 2. You say it is Apple's problem and they are working on it, huh? It's been at least two months, apparently. It doesn't seem to be a top priority.

  • Problem with image url

    Hello,
    today I have a problem with image url. I wanted Image to change when mouse dragged over it. But nothing happened. Any ideas?
    def maxIco: ImageView = ImageView{
    image: Image{
    url: "{__DIR__}ikony/max.png"
    onMouseDragged: function(event: MouseEvent){
    maxIco.image = Image{
    url: "{__DIR__}ikony/max2.png"
    }

    This is working for me:
    src/main/Main.fx
    src/main/icon/image1.bmp
    src/main/icon/image2.bmp
    //Main.fx
    package main;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.image.Image;
    import javafx.scene.image.ImageView;
    import javafx.scene.input.MouseEvent;
    var changed = false;
    def imgView: ImageView = ImageView {
        image: Image {
            url: "{__DIR__}icon/image1.bmp"
        onMouseDragged: function (e: MouseEvent): Void {
            if (not changed) {
                imgView.image = Image {
                    url: "{__DIR__}icon/image2.bmp"
                changed = true;
                println(imgView.image.url);
        onMouseReleased: function (e: MouseEvent): Void {
            imgView.image = Image {
                url: "{__DIR__}icon/image1.bmp"
            changed = false;
            println(imgView.image.url);
    Stage {
        title: "ImageTest"
        scene: Scene {
            width: 700
            height: 600
            content: [
                imgView
    }I've changed few things to switch image only one time on mouseDragged event.
    It print the image URL.

  • Problem with Image.createImage()

    Hi all!
    I'm writing a simple midlet just to display an image on the screen and I'm having some problems with Image.createImage()
    Here is my code
    Image bg_img;
    ImageItem imageItem1;
    imageItem1 = new ImageItem("", null,ImageItem.LAYOUT_DEFAULT, "");
    try{
    bg_img = Image.createImage("/image.png");
    imageItem1.setImage(bg_img);
    catch(java.io.IOException e){
    e.printStackTrace();
    I'm getting an exception on bg_img = Image.createImage("/image.png");
    I can't understand what is it...:(
    I know for sure that the problem is not "file not found"
    Any one can help me???

    If you are catching IOException, then u may have problem with ur image path. "image not found on the specified path." if ur image is not in the current directiry then put it into current directory. otherwise, If u are using resouce folder and it is already included into the resouce path, then put ur image in that folder..try this..
    Still not get, then please give some detail about ur development toolkit. and ur apllication packaging scheem. are you using ANT?
    Pranav

  • Problem with image gallery

    Hi to all.
    With ios 5.01 I have a little problem with image gallery. As you can see I have only 1 image, but there is always this **** message "download 0 of 46) (sorry, but I'm Italian )
    I've removed my icloud account from settings, but there is nothing to do, this message don't goes away. What I can do? Thanks in advance

    Hello,
    Just adding a gallery I want to do the same slideshow WoodWing's, but in InDesign, if anyone knows of?
    Thank you
    Link video slideshow WoodWing's: http://www.youtube.com/watch?v=Xt6gNaEZ0-M&feature=relmfu
    The first slideshow shown

  • Problem w/ image item using 9i BLOB field and InterMedia ORDImage Object

    Hi,dear all,
    I have a problem with image item in Form 6i. Oracle 9i is used as backend DB, and a table contains image data is created for testing:
    create table image_test(
    id number,
    image blob
    In Form 6i, there is no problem to create a block for inserting/updating the image record into the database. However, it can not be used to retrieve image (blob field), the image item remains empty after 'execute query', while the id field can be retrieved. When the same table is created in Oracle 8.1.7, and the exact same form can be used without any problem both in inserting and retrieval. It seems that the Oracle 9i does not use the same way to store BLOB column. Has anybody ever encountered this problem? How to retrieve image (BLOB) in Form 6i from Oracle 9i?
    I tried to use interMedia ORDImage as the data type in Oracle 9i, that is,
    create table image_test(
    id number,
    image ORDSYS.ORDImage
    Same problem, the form can insert record with image, but when retrieving, nothing displayed. Anybody could help! Thanks in advance!

    hi!
    well working with oracle8i and form6i.
    same problem..but i used (instead of blob or clob as datatype..) Long raw..
    it can be saved as usual..i mean Commit..
    and can be retrieved..using Execute_Query..its working fine..
    well if anybody get any other solution..do inform..
    mail_id:
    [email protected]

  • I am having problems opening images renerated in lightroom5 into cs6. Cs6 bridge does not see the lightroom libarary. If I open lightroom and right clik the image, edit in cs6, 6 opens but the picture doesnot follow. What is going on? Give me a hand.

    I am having problems opening images renerated in lightroom5 into cs6. Cs6 bridge does not see the lightroom libarary. If I open lightroom and right clik the image, edit in cs6, 6 opens but the picture doesnot follow. What is going on? Give me a hand, thanks.

    What edition of LR 5? What edition of ACR does PSCS 6 contain. If they are not parallel (same edition number x in [5 or 8].x ), is LR making a tiff or psd rendition of the image?

  • Problems with image scaling

    I'm facing a real problem with image scaling
    I've used several algorithms but it all has defects but the most common thing is the out of memory error after several enlargments...
    does any one know a solution...
    note:
    I've used several packages to do so,but I'm looking for a solution from the jdk itself
    JAlexscorpio

    Did you take into account that the getScaledInstance() -method creates a completly new Image?
    So if you use it like in
    ImageIcon icon1=new ImageIcon("Blah.gif");
    ImageIcon icon2=new ImageIcon(icon1.getImage().getScaledInstance(400,400,SCALE_FAST);
    you will end up with 2 different Images which have their own data and memory requirements.
    even if you use something like
    ImageIcon icon1=new ImageIcon("Blah.gif");
    Image i=icon1.getImage();
    icon1.setImage(i.getScaledInstance(200,200,SCALE_FAST));
    You will need enough memory to store the data for the original image, as well as the data for the scaled
    version of the image, at least for the time that it take the JRE to create the scaled version. You never know when the garbage collector kicks in to delete you old data so it could be that this takes some time and until
    that moment your memory is not available. If your now doing several of the scaling operations, and there is no chance for the garbage collector to do its work, you will run out of memory.
    I hope that might help, if not feel free to post again

  • Problems with Image Variants

    I got two problems with Image Variants:
    1. catalogCache.GetImagePath("Images", id) doesn’t work for some id. The error message is “GetImageVariant error”.
    2. catalogCache.Preload("Images", “Original”)
        catalogCache.Preload("Images", “Thumbnails”)
        catalogCache.Preload("Images", null)
       catalogCache.Preload("Images", "")
    get failed, the status code is -2147483647
    Anyone know how to setup  image variants?
    Thanks.
    Forrest

    status code: -2147483647 is RC_BADPARAM.

  • Problems w/ Images in Reports 2.5

    I seem to have run into an apparent limitation with the Oracle Developer
    2000 Report Designer 2.5. I have an image that is displayed, the path being
    stored within the database, the image is then Read from file. This works
    fine except there are two problems that I have run into and hope somebody
    can either confirm this is the way the software functions or point me in the
    right direction.
    It seems impossible to me to get the image to center within the field as
    defined in the Report Layout. I have the image field on the report set to
    about 10 Inches wide. Initially the image appeared on the left hand side of
    the field, I changed the alignment to Center as you would for a text field
    but to no avail, the image always comes back on the left hand side.
    If the images where all of a uniform size this would not bother me as I
    would simply create the image box based upon the size of the image and
    center it on the report, alas this is not an ideal world. How can I center
    an image within a field ? Is it even possible.
    Thing brings me onto my second problem, the images stretch to fill the image
    field, stopping when it either hits the horizontal or vertical boundary.
    This is great in a way because oversized images are zoomed into and appear
    fine, the whole process does not mess with the aspect ratio's of the images
    at all. However with images much smaller than the image field, they are
    stretch way to much and become pixilated and an eyesore. I have tried
    playing with the Variable, Can Shrink, Can Grow features but I lose all
    control of where the image will wind up with varying results. The Expand,
    Contract properties have little effect, the variable option shrinks all
    images down to the tiniest of thumbnails and then again they appear to the
    left of center. Somebody has to have done this before.
    Any idea how I can control this behavior ? And maybe just have an image
    appear at its actual size ?
    Combined these two factors make the report shabby, and this is intended as
    presentation quality material.
    Any guidance, advice is appreciated.
    Thanks,
    James
    James Starritt
    null

    Hello,
    Is there any particular reason you cannot upgrade to Reports 6i? Reports 2.5 is quite old, and there have been a number of issues resolved with images since then.
    Regards,
    The Oracle Reports Team --skw                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Copy and Paste Problems with Images

    I'm having the strangest problems with images. I copy an image off of the web for one of my art history classes and I go to paste into another program but, whether it's Keynote, Powerpoint, Photoshop, or Graphic Converter, something always goes wrong: the images definitely lose some of their quality, become brighter in appearance, and get jagged on the edges. This is starting to drive me nuts, especially since it never happened in 10.4 on my iBook G4. Any suggestions?

    Make it an 8-bit file (Image menu > mode).

  • Problem seeing images using Firefox

    I have a problem seeing images when using Firefox. I can see them at first, but when i scroll down they dissappear until I get to a certain point on the screen (like when the images are at the top of the firefox screen) then I can see them. Was wondering if anyone knew what the problem could be?

    from the system details you've submitted it appears that you have the foxit reader pdf plugin on your system - it's known to cause problems with hotmail since firefox 12. disable it in firefox > addons > plugins until there's an update by foxit which fixes the issue

  • Problems loading images in JavaHelp

    Using Helpsetmaker to drop the helpset I have had problems with loading images.
    Helpsetmaker keeps any imported images in a pics/<folder>/<folder> heirachy, where the subfolder heirachy is based upon the 'root directory' used to import images.
    The html docs produced are used OK, but the images are not loaded correctly.
    HTML is fine, so the helpset files in general produced by the utility are OK.
    If I move the images to the root of the helpset i.e. the same
    location as the html, & edit the html <img> tags to reflect the new location they are loaded
    correctly so no problems with image files as such.
    AFAIK JavaHelp does not impose restrictions on locating files in subfolders, am I missing something?

    Having had a spare moment to look at the problem again this was a case of seeing what you want to see.
    HelpSetMaker was actually dropping tags src="pics\folder\folder/image.png"

Maybe you are looking for

  • ISE Fail OPEN configuration/testing

    Greetings, We will be performing a live test of ISE Fail Open on our production system tomorrow night. When the policy nodes are all unavailable we want the switches to allow open access to all devices on all interfaces. I have done some testing of t

  • Adding metadata to .m1v files in Bridge CS3

    I have video files (no audio) .m1v files that I need to tag with Metadata in bridge. One problem when I try to do this in Bridge CS3 version 2.1.1.9- I get an error message saying "The file "filename.m1v" cannot store XMP metadata. No changes will oc

  • C3-01 touch and type - slow recent calls file

    I have an issue with Log (or recent calls). When I push "green button" to see my last calls, and after than I push "red button" to go back to my home screen, it takes about 6-7 seconds, when home screen appears. It is very annoying. Is this the featu

  • How to delete email notification

    Does anyone know how to delete a non-existent email notification from BlackBerry Q5? I have tried to reset/ reboot the device yet it doesn't disappear. Thanks all!

  • Missing confirmation email

    I preorder my iPhone 6 at 6:00 CST this morning and still have not received a confirmation email. When I try to pull up my recent orders online on my account it shows that there are no recent orders, but a charge from Verizon has already shown up on