Problem with reading images in an applet

Okay when i use Jbuilders applet viewer, my images load just fine, but when i use internet explorer to view the applet it finds the class files and tries to load the images, but has an error, so i look at the response from the java console, and it says there is problem reading the images - says their read only - so what? they arent anyway, and besides all im doing is reading them.
Anyone know whats wrong? why does it display in the applet viewer in jbuilder but not in the webpage?
Please respond to [email protected] Thanks

I dont think that is the problem though, as mediatracker is just to ensure that before the paint method is called, the images are loaded instead of being loaded only once the paint method is called.
I was thinking that it may be the fact that the application is not signed so there may be security violations in the browser but that should only apply when the files do not reside on the computer from where your calling it from.
what do u think?
Thanks

Similar Messages

  • I am facing a Problem with reading images from database

    Hi everybody..
    any help will be most appreciated, I am facing problem with reading images from database. I am pasting my code... 
                    string connect = "datasource = localhost; port = 3306; username = root; password = ;"; 
                    MySqlConnection conn = new MySqlConnection(connect); // creating connecting string
                    MySqlCommand sda = new MySqlCommand(@"select * from management.add_products ", conn); //creating query
                    MySqlDataReader reader; 
                    try
                        conn.Open(); // Opening Connection
                        reader = sda.ExecuteReader(); // Executing my Query..
                        while (reader.Read())
                            byte[] imgg = (byte[])(reader["Picture"]);
                            if (imgg == null)
                                pc1.Image = null;
                            else
                                MemoryStream mstream = new MemoryStream(imgg);
                                pc1.Image = System.Drawing.Image.FromStream(mstream);
    It says Parameter not Valid... i am reading all the images from database

    I agree with Viorel. You are getting the error because the format of the data is incorrect probably because the data was modify. It may not be the reading of the database the is incorrect, but the application that wrote the data into the database. You need
    to compare the imgg array data with the data before it was written to the database to see if the data matches.  I usually start by comparing the number of bytes which is easier to check then compare the actual to isolate which function is changing the
    byte count.
    An image is binary data.  The standard VS methods for reading and writing data (usually stream classes) default to ASCII encoding which will corrupt binary data.  The solution usually is to use UTF8 encoding instead of the default ascii encoding. 
    Ascii encoding with stream often aligns the data and adds extra null bytes to the end of the data which can produce these type errors.
    jdweng

  • Problem with Gif image

    Having a problem with gif image not showing up. It will show up in netscape6.2, but not in IE 5.0. Both are using the java 1.4 plugin. They are basic buttons (zoom in, zoom out, etc) and they actions work, just the icons aren't showing. Any help would be great! Below is a snip of code:
    JPanel toolBarsPanel = new JPanel();
    javax.swing.JToolBar toolbar = new javax.swing.JToolBar();
    JButton zoomin = new JButton(new ImageIcon("tut/zoomin.gif"));
    JButton fullext = new JButton(new ImageIcon("tut/fullextent.gif"));
    JButton identify = new JButton(new ImageIcon("tut/identify.gif"));
    JButton btn = new JButton(new ImageIcon("tut/addtheme.gif"));
    toolbar.add(zoomin);
    toolbar.add(fullext);
    toolbar.add(identify);
    toolbar.add(btn);
    add(toolbar, BorderLayout.NORTH);
    Thanks again for any help!

    I used to do a lot of work in this sort of thing. After a while we were able to convince our bosses to use generated HTML (JSPs, etc.), so the problem moved to porting JavaScript to different platforms! (Platforms in this context means the different browser/OS combinations, etc.).
    The only two things I can recommend are:
    - complete control over you code. You will have to fix it! (Tried you apps on a Mac yet?)
    - assume a minimal install. Don't assume users are going to have any fancy tools installed on their PC, unless you are developing an Intranet app, where you know the spec of the machines that are going to be using it.
    As regarding getting IE to use a relative address, I don't think you are going to have any luck their, I'm afraid! (Although I am curious. It has been some time, but I though it did use relative addresses. Are you absolutely sure about this, did you check this out with System.outs and that?
    HTH,
    Manuel Amago.

  • For the last 2 days whenever I try to upload photos from my iPhoto page to facebook I get an error message: Bad Image There was a problem with the image file.  I haven't knowingly changed any settings on iPhoto or facebook. Can anyone help, please ?

    I need help with uploading photos from iPhoto to facebook. I could do it till 2 days ago. Now any new photo I try to upload gives me an error message:
    Bad Image
    There was a problem with the image file. 
    Please help.

    Can you drag it to the Desktop?

  • I have problems with uploading images to my printing company have the images have been manipulated through CS6 i have saved images as jpeg but the printer company tell me they are not j peg, they will not upload images save from a camera are fine

    I have problems with uploading images to my internet printing company when  the images have been manipulated through CS6 and  i have saved images as jpeg  the printer company tell me they are not j peg,
    but images saved from my phone or camera images that have not been manipulated upload fine, What am i doing wrong?

    Save/Export them as JPG. Photoshop defaults to PSD, so make sure you select JPG and not just rename the file to .jpg.
    There are two ways to save them as JPG: Regular Save as option or Save for Web & Devices
    Take your pick.

  • Problem with displaying image

    Hello!
    Sorry, I'm a beginner in APEX and have some problems with displaying images in my application. I have read the same topic but unfortunately didnt find the solution.
    So.. I have the interactive report
    table test (
    NAME NOT NULL VARCHAR2(4000)
    ID NUMBER
    BLOB_CONTENT BLOB
    MIME_TYPE VARCHAR2(4000))
    I need to display the column blob_content.
    Thnks a lot.

    1009316 wrote:
    Hello! Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your forum profile with a real handle instead of "1009316".
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    Sorry, I'm a beginner in APEX and have some problems with displaying images in my application. I have read the same topic but unfortunately didnt find the solution.
    So.. I have the interactive report
    table test (
    NAME NOT NULL VARCHAR2(4000)
    ID NUMBER
    BLOB_CONTENT BLOB
    MIME_TYPE VARCHAR2(4000))
    I need to display the column blob_content.This is described in the documentation: About BLOB Support in Forms and Reports and Display Image. There's an OBE tutorial that followed the introduction of declarative BLOB support in 3.1 as well.

  • Problems with importing images into Lightroom cc

    Problems with importing images into Lightroom cc
    I have installed lightroom cc and having trouble imortera images from my Canon 1DX.
    Lightroom starting the capture, but then nothing happens more, if I turn off the camera, I get error message photo 100-200 could not be loaded.
    Now I have left lightroom 5 and where the input port works fine.
    What happened to the upgrade from Lightroom 5 to lightroom cc?
    The camera has the latest software.

    I've now tested in various ways.
    First, I have images on both memory cards in the camera.
    Test1) Selects Not all of the photos in the camera at the input port bearings, it seems to work fine.
    Test 2) selects all cards in the camera and then get the following, Lightroom starts inportera short but stops and nothing happens (Fig.1).
    I turn the camera off after a while and get the next meddelnade (picture 1)
    Which can be translated:
    "The following files were not imported because they could not read (351)
    Property 1-100
    etc. "
    Picture 1.
    Picture 2

  • Why do i have a problem with accessing images in adobe muse

    why do i have a problem with accessing images in adobe muse ??????!!!!!
    i need heeeeeelp ASAP
    pleeeeease

    I am on the begining stages with constructing the web so i do not have yet URL. The problem is i can not insert any image any way. Whether by fill a browser or by place image, i have the same issue. All the images with all image's format unable to be selected and it is turned off
    I really need help plz
    Is there any info i can supply that would help you figiring out the problem ??

  • I am getting problem with eps image coordite while rotating in AI Script

    I am getting problem with eps image coordite while rotating in AI Script

    "Problem"? Uh, *what* problem?
    "AI Script"? There is no such thing.
    I'm willing to interpret "cordite" as "coordinate" but you must provide more (a LOT more) information before anyone can volunteer to help you. You are not posting to an automated system that retrieves stock answers from a database. You are asking Real People to help you. (And this is a user-to-user forum, so it's all voluntary as well.)

  • Problem with capturing image

    http://1drv.ms/1jWJ5a3
    Problem with capturing image. Logs included.
    Also after deploying letters are swapped. System is on D drive, and data on C drive.
    Any idea ?

    Based on the logfiles:
    SMSSITECODE=K01
    SMSMP=SCCM.kolubara.local
    you could also use DNSSUFFIX=kolubara.local
    More on CCMSetup parameters can be found here
    http://technet.microsoft.com/en-us/library/gg699356.aspx. Use client.msi parameters in your task sequence separated by spaces, so that your Setup Windows & Configuration Manager Client -step looks like this:

  • Problem with READ Statement in the field routine of the Transformation

    Hi,
    I have problem with read statement with binary search in the field routine of the transformation.
    read statement is working well when i was checked in the debugging mode, it's not working properly for the bulk load in the background. below are the steps i have implemented in my requirement.
    1. I selected the record from the lookuo DSO into one internal table for all entried in source_packeage.
    2.i have read same internal table in the field routine for each source_package entry and i am setting the flag for that field .
    Code in the start routine
    select source accno end_dt acctp from zcam_o11
    into table it_zcam
    for all entries in source_package
    where source = source_package-source
         and accno = source_package-accno.
    if sy-subrc = 0.
    delete it_zcam where acctp <> 3.
    delete it_zcam where end_dt initial.
    sort it_zcam by surce accno.
    endif.
    field routine code:
    read table it_zcam with key source = source_package-source
                                                 accno  = source_package-accno
                                                 binary search
                                                 transportin no fields.
    if sy-subrc = 0.
    RESULT  = 'Y'.
    else.
    RESULT = 'N'.
    endif.
    this piece of code exist in the other model there its working fine.when comes to my code it's not working properly, but when i debug the transformation it's working fine for those accno.
    the problem is when i do full load the code is not working properly and populating the wrong value in the RESULT field.
    this field i am using in the report filter.
    please let me know if anybody has the soluton or reason for this strage behaviour.
    thanks,
    Rahim.

    i suppose the below is not the actual code. active table of dso would be /bic/azcam_o1100...
    1. is the key of zcam_o11 source and accno ?
    2. you need to get the sortout of if endif (see code below)
    select source accno end_dt acctp from zcam_o11
    into table it_zcam
    for all entries in source_package
    where source = source_package-source
    and accno = source_package-accno.
    if sy-subrc = 0.
    delete it_zcam where acctp 3.
    delete it_zcam where end_dt initial.
    endif.
    sort it_zcam by surce accno.
    field routine code:
    read table it_zcam with key source = source_package-source
    accno = source_package-accno
    binary search
    transportin no fields.
    if sy-subrc = 0.
    RESULT = 'Y'.
    else.
    RESULT = 'N'.
    endif.

  • I have a problem with vertical images burned on a cd

    I have a problem with vertical images burned on a cd either from a Mac or a stand alone burner. What happens is the images come from the card and are put on the cd. Also note the the camera has been set for the computer to automatically show images vertically when shot that way. The images look good on my Mac, but are horizontal on windows computers. Both XP and Vista. What can be done?
    John

    Hi, thank you for the response... not sure looks that the battery its ok, I'm not sure.
      Charge Information:
      Charge remaining (mAh):    4356
      Fully charged:    Yes
      Charging:    No
      Full charge capacity (mAh):    4356
      Health Information:
      Cycle count:    813
      Condition:    Normal
      Battery Installed:    Yes
      Amperage (mA):    0
      Voltage (mV):    12571

  • Having problem with reading list in safari

    i am having problem with reading list in safari some time it work sometimes gets hang....

    Might be a cache issue ...
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following:
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.

  • Problem with scramb image MULTI DISTORTION COLOR

    PROBLEM WITH IMAGE,  SOMETIMES ITS DISTORTIONATED, AND SLOW

    Are you writing of problems with the image displayed on your screen? Anyway that you can post a screenshot (to make a whole screenshot, hold down the Shift, Command and 3 keys at the same time). Upload your screenshot using the camera icon in the composition bar above.
    It would also help to know which model MacBook Pro you have - 15" late 2011, for example.
    Clinton

  • Problem with Atf, Image distortion

    I got a problem with image Distortion
    Here my atf in atf viewer: [IMG]http://i.imgur.com/d75aU.png[/IMG]
    Heres my atf in FLashPlayer using 11.4.402.287: [IMG]http://i.imgur.com/H2vEV.png[/IMG]
    notice the red pixel in the green part of the texture.
    Im using png2atf with no parameters.

    Are you writing of problems with the image displayed on your screen? Anyway that you can post a screenshot (to make a whole screenshot, hold down the Shift, Command and 3 keys at the same time). Upload your screenshot using the camera icon in the composition bar above.
    It would also help to know which model MacBook Pro you have - 15" late 2011, for example.
    Clinton

Maybe you are looking for

  • Built-in Input

    Hi, I have a iMac 2011, and I'm trying to use the Built-in input. To play the sound from my speakers as the input/out so others can hear it. But however The M is grayed out and I cannot get it enabled. Any solutions to this problem? It's been puzzlin

  • Sync iPhone 5 with Outlook through iCloud

    Hi, When trying to sync, I get the message from iCloud: "Setup can't continue because Outlook isn't configured to heva a default profile. Check your Outlook settings and try again." I did choose a default setting (Outlook) and i stille get the messag

  • Reducing Slide Size without scaling objects

    Hi All, I have a presentation that is in 2 sizes 1920X1220 and 1920X1080. If we increase the custom size of a slide show it does not resize the type and content. If we try to decrease the size it resizes the type and content. Unfortunately we started

  • "Expected Ship Date: 10/14/2011"?

    On my account, I have listed for my preordered Iphone 4S Expected Ship Date: 10/14/2011 Assuming they do just get to shipping the iphone 4S on the 14th, does verizon overnight phone orders so that I would get it on the 15th? I've never bought a phone

  • Question: I want to know if it may be used for an iPhone 5 a car charger with an output of 5V/1A

    Question: I want to know if it may be used for an iPhone 5 a car charger with an output of 5V/1A