SPLASH IMAGE PROBLEM IN MIDLET

hi guys nd gals
i want to display an image splash at the start of my midlet
am doing that successfully but d image comes in ut too big for the display dat way part of it is offscreen how can fit it into the display?
thanks

I am experiancing a problem in reading an Image
datatype from SQLServer7.0 using java. The Image is
created using MSAccess application and I am trying to
read the same Image using Java. I am using InputStream
to read Image and writing bytes to another
file(a.gif). When I opened the image it says invalid
format. Below is my code. Help me....
what format image is it exactly. you say you are saving it as a gif but you seems to be saving at as a tif. these are not the same.
String s = "select * from Image where
e IMSCANUSERID='A'";
java.sql.ResultSet rs =
= conn.createStatement().executeQuery(s);
          rs.next();
java.io.InputStream is =
= rs.getBinaryStream("IMIMAGE");
java.io.FileOutputStream out = new
w java.io.FileOutputStream("c:/test1.tif");
          int i;
          while((i=is.read()) != -1)
               out.write((byte)i);     
          }first find out what format the image is exactly.
then save it as that type.

Similar Messages

  • Splash image not working in JNLP

    Hi all...
    Splash image is not get displayed in my Application..
    Here is my JNLP file.
    <jnlp spec="6.0+" codebase="http://localhost:8080/MyProject/">
      <information>
        <title>MyProject1.0</title>
        <vendor>My Company.</vendor>
        <homepage href="null"/>
        <description>Application Launcher For MyProject1.0</description>
        <icon href="http://localhost:8080/MyProject/images/Splash_MyProject.jpg" height="300" width="560" kind="splash"/>
        <offline-allowed/>
      </information>
      <security>
        <all-permissions/>
      </security>
      <update check="timeout" policy="always"/>
      <resources>
        <java version="1.6"/>
        <jar href="http://localhost:8080/MyProject/SwingApplication/mysql-connector-java-5.0.6-bin.jar" download="eager" main="false"/>
        <jar href="http://localhost:8080/MyProject/SwingApplication/MyProject1.0.jar" download="eager" main="true"/>
        <jar href="http://localhost:8080/MyProject/SwingApplication/liquidlnf.jar" download="eager" main="false"/>
      </resources>
      <application-desc main-class="com.mycompany.ui.MainWindow">
        <argument>production%0%3#com.mysql.jdbc.Driver#MyProject4%jdbc:mysql://10.100.1.89:3306/MyProject4%MyProject%info123#MyProject2%jdbc:mysql://10.100.1.89:3306/MyProject2%MyProject%info123</argument>
      </application-desc>
    </jnlp>Splash image not get displayed and then I change *<java version="1.6"/>* to *<java java-vm-args="-splash:resource/images/Splash_MyProject.jpg" version="1.6"/>*
    still splash image not get shown on application startup..
    no java.awt.SplashScreen() class instance found.
    Plz anybody give some idea...

    I have also a problem with the splash screen not displaying. This is the first relevant portion of the jnlp:
    <jnlp spec="1.5+" codebase="http://www.i-modulas.nl/downloads/"
    href="imodulas.jnlp">
    <information>
    <title>i-Modulas Thin Client</title>
    <vendor>i-Modulas Software BV</vendor>
    <icon kind="splash" href="http://www.i-modulas.nl/downloads/javathinsplash.jpg"/>
    </information>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.5+"/>
    <jar href="isrun.jar"/>
    <property name="iscobol.conf" value="http://www.i-modulas.nl/downloads/javaclientproperties.txt"/>
    </resources>
    <resources os="Windows">
    <property name="swing.defaultlaf" value="com.sun.java.swing.plaf.windows.WindowsLookAndFeel" />
    </resources>
    <resources os="Linux">
    <property name="swing.defaultlaf" value="com.sun.java.swing.plaf.gtk.GTKLookAndFeel" />
    </resources>
    The application starts normal and uses a different look and feel under Windows as under Linux, but I do not see the splash screen. I tried different ways of referencing to the picture and I also tried using a .gif format. It never worked!
    Any suggestions are welcome!
    Ren�

  • Flex Mobile Splash Image

    Hello,
    Is there a way to increase the visual quality of the splash image? Or set size?
    How about adding text in adition to the image, like "Loading..."?
    Thank you.

    Good idea, thanks.
    However, I did this differently.
    I was having problems with quality even with scaling set to none, the image would get jagged edges etc.
    I tried vector formats, but neither FXG or SVG are allowed in 4.5.1.
    Luckily, SWF is allowed and I imported the vector graphics to in and it worked.
    The SWF can contain no AS or rather any AS in the SWF file will be ignored, but it does work.
    And as a bonus, the SWF filesize is 2x smaller than the GIF I was using (now that I think about it, the scaling might have worked better on JPG or PNG files).

  • Image problem in V4.0

    Hi,
    Previously I had lots of problems with showing a BLOB image from a table
    in a report using the apex_util.get_blob_file_src function.
    Varad put me right on several ocassions: see the thread at
    Confusion with get_blob_file_src
    Eventually everything went well, and I got my images of a specific size on the screen.
    In the last month or two, the host database that I rent went up from version ten to version
    eleven, and the apex version changed too from 3.2.1 to some version of 4.
    I've only now discovered that the images don't display any more. I've re-read the thread
    mentioned above but can see no deviation from Varad's sterling advice. It still doesn't work,
    so my current guess is that something has changed when Apex went to its new version.
    Can anyone point me in the right direction regarding Image problems in version 4 ?
    I guess I'm not the first to experience such issues, and a checklist of things to try would
    be most welcome.
    I've done a View->Source on the page that doesn't work, and the issue with a missing value
    for the "d=" parameter on the apex_util.get_blob_file seems to have recurred:
    src="apex_util.get_blob_file?a=130&s=1718106956127950&p=13&d=&i=25615931827270369&p_pk1=5&p_pk2=&p_ck=947078FC54BB5126E7E0D19F8A24C416"
    Suggestions welcomed please; thankyou in advance.
    Mungo

    Hi Folks,
    I've found a solution to my "image" problem that caused this thread, hence the decent thing is to
    post it here.
    I read various other threads and stumbled across:
    PDF viewing with  apex_util.get_blob_file_src not working with 4.0
    PDF viewing with  apex_util.get_blob_file_src not working with 4.0 &# 4404695
    That thread mentioned the requirement for an "Automated Row FETCH" process as well as having
    an "Automated Row PROCESSING" process too.
    I had the latter, but didn't have the former, so throwing caution to the wind I tried adding a dummy
    Automated Row Fetch process and the damn thing worked!
    Haven't got a clue why on earth either of these are requirements on a page that is selecting data
    from the database - I don't understand where such processes are called in the big scheme of things.
    That's just me baiting some kind soul to spell out the fundamentals for this idiot... please?
    Happy to be corrected on any points.
    Regards until the next crisis...
    Mungo :-)
    P.S. How come there is no reasonable way to get the URL of a single post in a thread - I'd like to give
    reference to the single post that helped me, but all I seem to be able to get is the whole blooming thread.
    Suggestions?
    Edited by: MungoHenning on Sep 15, 2010 1:39 PM

  • Photosmart D110 All-In-One Printer - Shadow image problem

    I have been having a problem with this printer, ever since we purchased it about 2 months ago, where it will print a shadow image of text or pictures on some documets but not others. It is specific and consistent in that it will print this shadow image on some documents every time and on other documents none of the time. I have a PC and a Mac and it doesn't matter which computer I use, only which document. Sometimes it is only a part of a document, like the computer generated part of an email where it says " this person at this time on this date wrote.." but the other text will be fine. It happens on some coloring pages but not others. I spent  2 hours on the support line yesterday; it's still doing it. She had me unplug it, take off the printer software and reinstall it, update software (on my Mac)  and it did not fix it.  Any ideas on what may be causing this & how to fix it? I like the printer but am about to return it because of this problem.  The printer we had been using was an HP C4280 and did not have this problem. I'd like to keep the printer if I can fix this problem.

    I'm having the same shadow imaging problem on my Deskjet F4580, so if anyone knows how to correct it please post.. I've reinstalled/updated the driver, disabled advanced features, and deslected "Enable HP Real Life Technoliges".

  • Splash image flickering

    Hello
    I have create a program that start with a splash image defined in the manifest.mf file with the statement SplashScreen-Image: data/images/splash.jpg.
    When i run the program with jre 1.6.0 I see an undesidered flickering of the splash image.Can anyone help me?
    thanks

    what is the advantage of the native splash over
    making one yourself? The spash screen comes up before the JVM and as the app is loading.
    I guess its just there to pacify people who think the JVM and App Startup
    is too slow. I know people at my job have actually said to me when
    running a Java app "why does it load sooo much slower than a VB
    app?" when in actuality it came up in an eye blink.
    I guess VB apps load in half an eye blink, lol.
    Do you have any code that manipulates the java.awt.SplashScreenI thought that because the SS comes up before the JVM (or concurrently
    or whatever) that you couldnt control it?

  • Persistent Image problem

    Okay, I just had the screen on this iMac replaced because of this problem with a dark line at the top of the screen. The screen has been replaced, and the dark line isn't there anymore. However, I am now having persistent image problems. This is noticeable when I use the Aurora desktop. If I have a window open (e.g. Safari) for a long enough time, and then I X out of it, I will see a shadow/ghost of it. It's most noticeable with a dark background. However, I DID change some of the settings in "Appearance," so I wonder if that might have done it. But I can't see a way to change everything back to default. Do you know if there's a way?

    Hi again - a couple of ideas:
    If you haven't printed the images or a while, it could be that you prepared them under a previous version of the Aperture raw and they've since been reprocessed, resulting in a slightly different look
    I had an occasion about 12 months ago when an update to the Epson printer drivers caused me to have to go back and change my print setups in Aperture, due to new colour interpretations.  Don't know why, but it happened... maybe your settings have changed since last printing?
    Could be that you did or didn't have the appropriate soft-proofing turned on - are you using this feature?

  • Strange short-term persistent image problem

    Hello,
    I'm well aware of the typical image persistence problem, where an image can stay "burned in" after the monitor displays the same thing for hours on end.
    I have a much shorter-term persistent image problem. Let's say I open a web-page, leave it open for 10 seconds and then open a new window in Safari (thus getting a pure white page). Well when that happens, the previous web-page is still shadowed on the new white.
    30 seconds later it has faded, but then the same thing will happen again with anything else that's displayed.
    Any ideas?
    thanks
    Loa

    Huh, now I'm really stumped. The cyan border is also present in FCE once I render, but it doesn't seem to happen for each instance when the paper image is used. Did you import the paper image as a .gif or something else? And did you add any filters to it? Did you also add any effects? The only I'm using with the paper image is the page peel and I have not tried any other effects to see if the cyan effect comes up.
    I've put a screen capture of my FCE project showing the cyan border present in the canvas as my movie is playing. Its on my idisk as FCE movie problem.tiff
    http://idisk.mac.com/gindacu-Public?view=web
    Thanks again for the help.

  • Passwords and images problem

    Firefox image problem. In Firefox 3.6.12, every time I save an image that's already displayed on my screen, I see "one active download" appear in the bottom right of Firefox's window and the same image is also listed in downloads. The problem is that Firefox doing that uses more bandwidth. How do I set Firefox so that when I save an image, instead of that image getting re-downloaded from where it's stored on the internet, it's copied from wherever Firefox has it stored to display it so Firefox doesn't use as much bandwidth? Tools/options/advanced/network/offline storage is set to 50mb.
    Firefox password problem. Tools/options/security/passwords has "remember passwords for sites" checked and there is nothing in my exceptions list. But Firefox keeps forgetting passwords, usually after restarting Firefox and or my whole system and on some sites, I don't even get asked "do you want to remember..." How do I fix this?
    I do have CCleaner and it's set to run at startup, but all the boxes for Firefox are unchecked, so it's not the cause of either problem.

    @cor-el
    OK, I'll give that extension a try and see what happens, thanx! :-)
    @venemovil
    I right click and either select "save image as" or if I want to save an image to more than one location, I select "view image" and then use ctrl+s. Both results in Firefox re-downloading the image as I described above. It happens on every site I visit.
    The password problem never happened before, but I will try disabling my extensions one at a time and see if it happens only whan a particular extension is turned on.
    This is a screenshot of the extensions I do have installed.
    http://i273.photobucket.com/albums/jj216/Moonbarker/Clipboard01.jpg
    I've also noticed that Firefox is forgetting what sites I've visited recently (I type in part of the url of sites I've visited sometimes as recently as a few hours ago and the entire url isn't in the suggested list) and I keep having to put the Fire FTP Button back in the toolbar (next to the home/stop/reload/back-forward buttons). That may be related to the pasword problem. I don't know.

  • Website images problem

    Hi there,
    I installed the latest version of Firefox. However, some websites I'm having some image problems. For example http://www.e-masifpanel.com web site with a phone number in the upper right corner of the space. In this area the way it looks on my Firefox browser line. I remember the moment some photos do not appear on other websites. Does version issue or problem, a problem with my my settings be? Thank you.

    Make sure that you haven't enabled a High Contrast theme in the Windows/Mac Accessibility settings.
    Make sure that you allow pages to choose their own colors.
    *Tools > Options > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
    Note that these settings affect background images.
    See also:
    *http://kb.mozillazine.org/Website_colors_are_wrong

  • Video image problem

    Hi...A neighbor has a iMac G5 and has developed a video/image problem. The iMac boots up and sometimes shows an ok screen for a little time, sometimes not. What emerges is an array of digital black on white graphic line images (maybe I should upload a picture), but makes the screen virtually impossible to see what you want to view, thus rendering the computer useless.Any thoughts as to what this is, seems like a hardware vs, software issues, but can't say for sure. What might it be: video card, other hardware on or attached to the logic board..and mostly could it be repaired (by self or reasonable). Any and all thoughts or experience welcome as I've been no help to my good neighbor friend on this one:)..Rick

    me 2 it's clear .. the new firm has poor quality than the original one...sadly .. my n93i now has quality like n70 help!!!!!!!!!!!!!!!!!!!!!

  • In this apk included ALL DW Folder files incluing images (eg splash images) for iOS - non needed act

    Following David Powers videos or books, instaling phonegap in dreamweaver site... well, config.xml references many splash screen image files for many platforms, well when build eg a specific binary (when upload with dw cs6 to phonegap) eg apk in this apk included ALL DW Folder files incluing images (eg splash images) for iOS - non needed actually for apk (android)?

    I am sorry to have to point out to you that you have changed SpryMenuBasicSkin.css so much that it is impossible to render any assistance.
    To start with, the menubar has an ID of MenuBar, yet in the CSS I only see this referenced as a CLASS as in
    .MenuBar  {
    background-color:#cccccc;
    font-family: Arial, Helvetica, sans-serif; /* Specify fonts on on MenuBar and subMenu MenuItemContainer, so MenuItemContainer,
    MenuItem, and MenuItemLabel
    at a given level all use same definition for ems.
    Note that this means the size is also inherited to child submenus,
    so use caution in using relative sizes other than
    100% on submenu fonts. */
    font-weight: normal;
    font-size: 16px;
    font-style: normal;
    padding:0;
    border-color: #ffffff #ffffff #ffffff #ffffff;
    border-width:0px;
    border-style: none none none none;
    I would suggest to start again.
    Once you have done that, supply a link to your site and we will assist you further.
    Gramps

  • Imaging problem LR 2.7

    Has anyone seen this issue arise on images that were imported ok, then  all of a sudden Lightroom image rendering will only do this?
    The source file appears okay as this does not happen when viewed with  alternative viewer programs.    However, the exports usually (not  always) also look like this. 
    What is this imaging problem called?
    I've never had this issue before, but it's started to occur with  frequency ever since I've moved... only mystery is: I have all of the  same equipment including camera.

    folks thanks for all fo the advice, but... I think I've discovered the problem:  VISTA + External Hard Drive = Picture and file corruption
    I should have known: the problem is MICROSOFT!!!!!  For the first time in my life, I thought seriously about switching to Apple (but then I would switch to Aperture). 
    Here are the old discussions.  Given the dates on these, apparently, I must be a rare person left on Vista. 
    http://www.vistax64.com/vista-music-pictures-video/136646-image-corruption-using-external- drive-vista.html
    http://social.technet.microsoft.com/forums/en-US/itprovistadeployment/thread/6ffcb5b7-ac72 -49ab-9a89-77e730db75b2/
    So 3 external hard drives tested with the entire set of nearly 400 GB of pictures, videos and files.
    All showing varying degrees of picture corruption, and now I've discovered video corruption as well. 
    My problem is, I deleted the original internal hard drive files, so I'm left with only one 1st copy, the other two are copies of copies and worse off. 
    I'm taking the leap.... upgrading to Windows 7 tonight.  I'll let you know what happens. 

  • Macbook pro retina ghost image problem

    I have heard about the burn-in problem on macbook pro retina display especially on LG screen. After I got my macbook retina for 3 months, the ghost image problem become really really unacceptable. After 4~5mins, the image on screen will burn in obviously for quite a long time. IT IS VERY OBVIOUS!! So I drop by apple store and find a genius, he did a persistence test on my macbook. The test is under a very low brightness, and I can not even know how he was operating. After 6 minutes, he said there is no burn-in problem. He explained that, if my macbook pass the test, it means my screen is within inspection. But I can tell if this screen is good, APPLE you should take a look at your inspection and change it RIGHT NOW. Everyone of my friend who have seen the problem on my screen says it is unacceptabe, how can it be within inspection? If anyone need a photo of that, i will provide.

    MoonnooM wrote:
    I have made an applecare call appointment. I'll post the result after I make the call. Thank you.
    Good work...
    Back-up all your data.
    If they replace your MacBookPro, you can avoid a service charge for runniing the back-up for you.

  • Macbook pro retina with ghost image problem

    Can i claim my retina display that have ghost image problem?

    Hi there, I had the same problem with my Macbook Pro 15`` Retina. And here is how you can find out if you have ghost image problem. There are two retina display manufacturers for Macbook Pro Retina`s LG and Samsung. And if you are luck you will have the Samsung Retina Display on your mac. Here is how you can find the manufacturer for you Macbook.
    Go to your Applications folder and launch Terminal. Paste in the following and hit return:
    ioreg -lw0 | grep "EDID" | sed "/[^<]*</s///" | xxd -p -r | strings -6
    Look at the beginning of the second line to see which manufacturer made your display. If it starts with LP then you have an LG display. Samsung displays start with LSN.
    If your display shows LP you might have this problem for sure. So here is how you can test your screen.
    A simple test to check your Retina MacBook Pro display for image retention also reported as "ghosting"
    http://www.mitchmalone.name/retina-test/
    Run the test for 10 Min. and you will find out if you have this problem.
    And if you have it, and if you are still under waranty the Apple will replace the display with Samsung for free of charge. I hope this information helps.

Maybe you are looking for

  • Variable substitution characters in sqlplus

    The question mark character - "?" is the substitution for ORACLE_HOME in sqlplus. What is the substitution character for ORACLE_SID? Are there any other characters that can be used? Where I can read about it? Leonid

  • Can i recieve service in Guatemala? Have problem home button and front camera

    Hi guys I'm user of ipod touch 4th generation i bought this in may 2011 And i paid apple care in applestore Glendale L. A CA. Now i live in Guatemala and my ipod have problem of home button And front camera(camera problem started when i bought) What

  • Lost Library and Rebuild Help Needed

    Hi, I was on here a few months ago, still haven't solved my problem so I'd thought I'd post my questions again. I had a library of 11,000+ photos that one day decided not to show up in iPhoto. I just saw black boxes and ! everywhere my photos normall

  • Hyperion OLAP model vs. Oracle OLAP

    Hi, I have a question re: how to properly model stuff in Hyperion OLAP. I know the basics of Essbase, but I've never found out how to do this... In Oracle OLAP, I can define a set of dimensions, and then create cubes that use any subset of those dime

  • Desktop class

    Hey I am trying to print a document using the new java class Desktop class. Desktop desktop = null; if (Desktop.isDesktopSupported()) desktop= Desktop.getDesktop(); try { desktop.print(new File(aFileFullPath)); catch (IOException e) // TODO Auto-gene