Confusion with get_blob_file_src

Hi,
Simple requirement: I have photos stored in a BLOB column in a table and I want them displayed
thumbnail size in an interactive-report page.
Having read round this area, it seems that I am duty bound to call apex_util.get_blob_file_src from
the report query's SELECT statement (so that I can force the image size to be 75 by 75).
Here's where the problems start.
Having read the advice, it seems that my select query should have a column along the lines
of: '<img src="'||APEX_UTIL.GET_BLOB_FILE_SRC('P2_ATTACHMENT',:P2_EMPNO)||'" />'
(I copied this from the documentation).
All looks fine: it's the return of the package APEX_UTIL's function called "GET_BLOB_FILE_SRC" wrapped
inside bookends of "<img src=" and "/>" essentially.
So this gets me thinking... the GET_BLOB_FILE_SRC looks like it takes two parameters. The
first parameter is obviously an item name, and the second is an item value.
But when I edit my interactive report page there is a single region for the interactive report and
there are no explicit items in the "Items" section underneath that.
Back to the API manual: I'm reading the description of the first parameter of the GET_BLOB_FILE_SRC
function and it says "Name of valid application page ITEM that with type FILE that contains the source type of DB column."
Hmmm... "Name of valid application page ITEM" ... I don't have one, so maybe I should create one for
use here. What to call it for this page three... how about "P3_IMAGE_HIDDEN" (because I'm thinking that its acting as
some sort of Placeholder box but although I want to use it I don't want to see it on its own).
Next bit of manual: "with type FILE"... does that mean this item's "DISPLAY AS" attribute has to be
set to "FILE"? Lets see... there's only a "File Browse..." entry that looks similar so I'm forced to choose
that.
I wonder if the option "FILE" is available through any other attributes... can't see any so let's persevere.
Then I read "... that contains the source type of DB column".
Gosh: what on earth does that mean? Does it mean that the contents of this Item is somehow "sourced" against
the specific blob column in the database?
So I set the "Source Type" to "Database Column" and then fill in the Source box with the name of the blob column
from the table.
(incidental aside: I find it amusing when I read some bits of the manual which explain that some words are case
sensitive when it might be more useful to state that upper case is the only one that will work! Look at the help
for "Source Type" and at the end of the "Database Column" entry it says "The database column name in that field is case sensitive."
The entry is not wrong, it's just that it could be more helpful methinks!)
Quick recap: The call to function GET_BLOB_FILE_SRC seems to take two parameters: the name of a legitimate Item
that is linked to the database table column, and the primary key value of one row from the table in question.
How this system works out which table holds the important blob column is a mystery to me.
When I set the report field to "Display as text" I get to see the end product of the query: a field that looks like
the following copy-and-paste:
<code>
<img src="apex_util.get_blob_file?a=900&s=3134319599265367&p=3&d=&i=1721302456803667&p_pk1=115&p_pk2=&p_ck=B7851B908E84506147F19B155D36C5F3" height="75" width="75" />
</code>
But when I change the report field to "Standard Database Column", all I see is a broken link.
Blast (and similar expletives).
I've had a quick look at the copy-and-pasted thing above and I can make guesses at the parameters such
as "a=900" (I've numbered this application 900), "p=3" it's page three, "p_pk1=115" looks like the first
primary key value etc. But what's the "d=" for ? Is that the source of my troubles?
Time to re-throw myself on the mercy of the group. Help requested please; thanks in advance.
Mungo Henning

Hello
OK. This is my understanding of how the 'get_blob_file_src ' API works. This API is a wrapper over the procedure 'get_blob_file'. The API returns a mod/plsql URL that calls out to 'apex_util.get_blob_file'.
So in order to call 'get_blob_file' we need values for the following parameters (see end of post for a desc of get_blob_file)
s Apex Session Id
a Apex Application Id
p APEX page id
d Process-id of the ARP page process in page p
p_pk1 Primary key value
p_ck1 Checksum
However, get_blob_file_src is called in the report query with just 2 parameters. These are
p_item_name - Name of page item of type FILE and source type of 'Database Column' and the column name being the name of the column that has the BLOB data
p_v1 - Value of the primary key column of the table that has the BLOB column
Now, how are the values for the parameters required by 'get_blob_file' obtained by get_blob_file_src ?
s -> is available from session state
a -> is available from session state
p -> is obtained by looking up the APEX meta data for the page-id of the page-item specified as the first parameter to get_blob_file_src
d -> This is the interesting one. A hack at best to obtain the table_name and PK column of the table containing the BLOB  from APEX meta data!
On the page specified in 'p' there must exist a ARP DML process with the following specs.
owner -> owner of table from where the blob column is to be retrieved
table_name -> name of the table that has the blob column to be retrieved
Item Containing PK -> Specify any string
Primary Key Column -> PK column of the table that has the blob column to be retrieved
Process Point -> After Submit..
p_pk1 -> is the value specified as the 2nd parameter to get_blob_file_src
p_ck1 -> presumably generated
Given the above and a report against the DEMO_PRODUCT_INFO table with a query likeselect product_id, '<img HEIGHT="25" WIDTH="25" src="'||apex_util.get_blob_file_src('P96_X',PRODUCT_ID)||'" />' img
FROM
DEMO_PRODUCT_INFOwhat I had to do make the images render was to
Create a page with an IR report region with the above query
Create another page where I defined a 'file-browse' type page item named P96_X. Set the Source Type to 'Database Column' and column name to PRODUCT_IMAGE
Created a ARP DML page process on this page with the following specifications
Owner => DEMO
Table Name => DEMO_PRODUCT_INFO
Page Item for PK => P1_ID
Primary Key Column => PRODUCT_ID
Process Point - On Submit..
Doc for get_blob_file extracted from package spec (APEX_UTIL)
procedure get_blob_file(
    -- Automatically called from APEX form pages
    -- Not designed to be called proceduarlly
    -- Calls to this procedure can be generated by calling the apex_util.get_blob_file_src function
    -- Page must have item of type FILE (FILE Browse)
    -- Page item source must use the following format "DB_COLUMN:MIMETYPE_COLUMN:FILENAME_COLUMN:LAST_UPDATE_COLUMN:CHARSET_COLUMN:CONTENT_DISPOSITION:DOWNLOAD_LINK"
    --    DB_COLUMN           = Required case sensitive name of a valid column which is of type BLOB
    --    MIMETYPE_COLUMN     = Optional case sensitive column name of a table column used to store the mimetype
    --    FILENAME_COLUMN     = Optional case sensitive column name of a table column used to store the file name
    --    LAST_UPDATE_COLUMN  = Optional case sensitive column name of a table column used to store the last update date of the BLOB
    --    CHARSET_COLUMN      = Optional case sensitive column name of a table column used to store the file character set
    --    CONTENT_DISPOSITION = inline or attachment
    --    DOWNLOAD_LINK       = Optional text to be used for the download text, defaults to Download, translated
    -- Page item source must include at least the database column name and a trailing colon
    -- Mimetype column is required if the mimetype is to be encoded in the download header
    -- Page item must be of source type of DATABASE COLUMN
    -- Page must have a DML process of type DML_PROCESS_ROW, used to determine the tablename
    -- Must be called from an APEX application context
    -- Invalid inputs will result in a 404 error
    s                     in number,                -- APEX session ID
    a                     in number,                -- APEX application ID
    p                     in number,                -- APEX page ID of the form page
    d                     in number,                -- DML process APEX meta data ID
    i                     in number,                -- ITEM of type FILE APEX meta data ID
    p_pk1                 in varchar2,              -- Primary key value
    p_ck                  in varchar2,              -- Checksum used to prevent URL Tampering
    p_pk2                 in varchar2 default null, -- Optional Second Primary Key Value, used for compound keys
    p_mimetype            in varchar2 default null, -- Optional ...
    p_content_disposition in varchar2 default null, -- Optional use "inline" or "attachment" all other values ignored
    p_show_last_mod       in varchar2 default 'Y'); -- Optional ...Varad
Edited by: varad acharya on Oct 27, 2009 2:44 PM

Similar Messages

  • New bug in 8.02 - regions confused with each other

    So, I just updated to 8.02, and loaded up a recent project that was half finished (bad idea).
    Now I have some strange bugs going on that I never had before, and they are basic issues.
    My audio regions keep getting confused with each other.
    I have an audio region that I can't open in the sample editor. When I double click on it, the sample editor will bring up the last region I edited, not the new one. I've re-named the region, deleted it and re-added it to the arrange window, but this region will not open in the sample editor.
    I can see it in my media bin, and preview it there, and it plays in my arrangement no problem, but I can't get it to open in the sample editor. In fact sometimes when I click on it, with the media window open, I can see another sample being 'selected' in the media window instead of the proper audio region.
    Scott

    finally i find someone else with the same prob, o already post into apple.com too
    yes here the same, bug new in 8.0.1, cause on logic 8.0.0 all works fine (except some click noise when you pre-listen a file in autoloop)
    however here what i can say to you (it's 3 days i'm studyng this cause i make a massive use of ultrabeat)
    - no matter both power pc / intel soffer of this bug
    - i try to update to leopard from my 10.4.11 (same bug) tryin a new os installation (same bug), tryn without audio card and driver (same bug)
    so i really don't know how to solve it, cause there are only few people that have this problem
    big mistake and big mistery

  • Socket Programing in J2ME - Confused with Sun Sample Code

    Hai Everybody,
    I have confused with sample code provided by Sun Inc , for the demo of socket programming in J2ME. I found the code in the API specification of J2ME. The code look like :-
    // Create the server listening socket for port 1234
    ServerSocketConnection scn =(ServerSocketConnection) Connector.open("socket://:1234");
    where Connector.open() method return an interface Connection which is the base interface of ServerSocketConnection. I have confused with this line , is it is possible to cast base class object to the derived class object?
    Plese help me in this regards
    Thanks in advance
    Sulfikkar

    There is nothing to be confused about. The Connector factory creates an implementation of one of the extentions of the Connection interface and returns it.
    For a serversocket "socket://<port>" it will return an implementation of the ServerSocketConnection interface. You don't need to know what the implementation looks like. You'll only need to cast the Connection to a ServerSocketConnection .

  • Confused with document life & account life

    I have a doubt regarding archiving
    I think in archiving projects especially for finance module
    there are lot of customization settings to be done form the functional side before Archiving , for example Document life ,Account life... etc
    I have a doubt weather those customization settings needs to be carried out by archiving consultant or
    the FI functional consultant?
    Can any one tell what is the difference between Secondary indexes and Archive Indexes in FI ?
    i am  really confused with the Archiving projects..... can any one help me
    Moderator message: not related to ABAP development, please post again in the appropriate SDN forum, always search for available information before asking.
    locked by: Thomas Zloch on Sep 23, 2010 11:41 AM

    Patience is a virtue.
    Rob

  • Confused with HD-SD

    Hi,
    All the sudden I am confused with my searches on this forum and would appreciate clarification
    I am presently working on a HD project (from HD clips and HD stills).
    If I want to get the best out of it, should I use only BluRay burning or would it be OK to use HD setting and burning with DVDSP on a "regular" DL disk (the compressed project will be over 7 GB ?
    Should I understand that if I use HD setting with DLdisks only a HD compatible DVD player will be requested ?
    will a Bluray player play the HD-DL fine ? or will a bluray disk be requested on bluray player ?
    As you can see I just got really confused ...
    Thanks in advance
    Ivan

    No doubt this stuff can be confusing. Hopefully I'll be able to clear a few things up.
    You shot and edit an HD project in HD. Now you would like to create a DVD correct?
    You have 2 options for DVD
    1. Standard Definition DVD authored in DVDSP.
    2. Blu-Ray DVD. You'll have to purchase a burner.
    If you are on the newest FCS then you can author and burn a Blu-Ray DVD inside of Compressor. If you are on the previous version then you need another application to author and burn Blu-Ray like Toast or Adobe Encore.
    You made mention of HD-DVD. That format is dead and won't play on anything other than your Mac or a couple specific HD-DVD players that haven't been in production for years. If you look in the DVDSP preferences you can choose which kind of DVD to burn SD-DVD or HD-DVD. Choose SD whenever you are using DVDSP.
    Blu-Ray players play Blu-Ray DVD's and SD DVD's. It will not play HD-DVD.
    How long is your project if the compressed (m2v) files are coming in at over 7GB?

  • SS9 CC5.6 compiler bug - algorithm count confused with struct member

    Found some code that fails to compile in CC 5.6
    CC: Sun C++ 5.6 2004/07/15
    #include <algorithm>
    using namespace std;
    struct A {
      int count;   
    struct B
      struct A *a;
    int main(int argc, char **argv)
      struct B *b = 0;
      // This line fails to build, any other operator is ok
      if ( b->a->count < 50 )
      return (1);
    }Fails with error :
    "c56_algorithm_bug.cpp", line 21: Error: Unexpected ")" -- Check for matching parenthesis.
    "c56_algorithm_bug.cpp", line 22: Error: "," expected instead of "{".
    "c56_algorithm_bug.cpp", line 22: Error: Illegal value for template parameter.
    "c56_algorithm_bug.cpp", line 22: Error: ")" expected instead of "{".
    4 Error(s) detected.The compiler is getting confused with the use of the count struct member vs the count algorithm. Changing the < to a > fixes the problem.
    Using CC5.3 works fine as well as all other compilers we use (gcc 3.4, mipspro 7.4, VC 7.1)
    Anyone seen this ?
    - mark

    This bug has been fixed in the C++ 5.6 compiler. I'm not sure if the fix is in the first patch which is about to be released. If not, the fix definitely will be in the next patch.
    The workaround is not to use
    using namespace std;That using-declaration is a pretty big hammer, and often results in conflicts with user code, compiler bugs aside.

  • Again confused with delta update.

    Hello experts
    I am confused with delta update as usual
    I have one Infocube in which last data pull was on 29.11.2005.
    If now again I run delta load then will it pull entire data from 2005 to 2008 or I should delete all data from cube n do full load??
    Kindly explain
    Regards
    Swati

    Hi Swathi
    LIS EXTRACTION
    T.code - :MC18 – create field catalog
    1. Characteristic Catalog
    Application-01-Sales and Distribution, 02-Purchasing, 03-Inventory
    Controlling, etc..
    Catalog category 1. Characteristic catalog, 2. Key figures catalog 3.
    Date catalog
    Select characteristic catalog and enter, click on characteristic select
    the source table and it will be display the relevant source field and
    select the source field, copy + close, copy.
    Save, similarly create key figures catalog
    T.code : MC21 – create infostructure
    Example –
    Inforstructure : S789
    Application – 01
    Choose characteristic select the catalog, select the fields, copy +
    close
    Choose key figures catalog select the key figures ,copy + close, save
    and generate
    T.code – MC24 – create updating
    Infostructure : S789
    Update group : 01- Sales document, delivery, billing document ,enter
    Select the key figures click on rules for key figures give suggest
    rules, copy save and generate
    Click on updating (activate updating)
    Select the infostructure set periodic split 1. Daily, 2. Week, 3.
    Month, 4. Posting period
    Updating –1)No updating,2)Synchronous updating (V1), 3)As synchronous
    updating (V2), 4)As synchronous updating (V3),
    T.code – LBW0 - Connection of LIS Information structures to SAPBW
    Information structure : S786
    Select the radio button-Setup LIS environment and Execute.
    Select the radio button-Generate data source and Execute.
    For Delta update:
    Select the radio button-Generate updating and Execute
    Select the radio button -Activate / deactivate and Execute.
    T.code – SBIW – Display IMG (implementation guide)
    Setting for applications specific data source – logistics – Managing
    transfer information structure – setup of statistical data – applications
    specific setup of statistical data –perform statistical setup – sales.
    Choose activity
    Setup – Orders, deliveries, billing
    Choose the activities enter the infostructure (S789), give name of the
    run, date of termination, time of termination, No. of tolerated faulty
    documents. Then execute
    T.code – RSA3 – Extractor checker
    Give the data source name eg. 2LIS 01S789 and execute, result will
    get some records
    Go to BW side replicate data source – Assign infosource – Create
    infocube – Create update rules – create infopackage and schedule the package
    with initialize delta process.
    For delta update :
    In R/3 side
    T.code – MC25, set update (V1) or (V2) or (V3)
    T.code – LBW0, choose generate updating and execute then choose
    activate / deactivate and execute
    BW side - create infopackage and schedule the package with delta
    update.
    First time if your scheduling the infopackage -in R/3 side T.code :MC25
    -Udating set to No update,insted of selecting the update V1,V2,V3.
    If your doing the Delta update:in R/3 side T.code :MC25-Updating set to
    either V1 or V2 or V3. and the to T.code :LBW0 -Select the radio button
    Active/deactivate and Execute.
    and schedule the infopackage with delta update.
    Regards,
    Chandu.

  • I purchased an IPAD2 for my special needs daughter.  She only currently understands lowercase letters only and gets confused with the uppercase letters.  Is there a way to change the keyboard to display lowercase letters?

    I purchased an IPAD2 for my special needs daughter.  She only currently understands lowercase letters only and gets confused with the uppercase letters.  Is there a way to change the keyboard to display lowercase letters?

    There is no way for the keyboard itself to display only lower case letters. It doesn't display lower case letters at all for that matter.
    When you are using the keyboard - The other issue that you will have is with the shift key. Even with auto caps turned off you can still type capital letters if you tap the shift key and if you double tap it by mistake - it will turn into all capital letters so also turn off Caps Lock in the keyboard settings.
    Other than that, there is no way to ensure that you can type in lower case.
    Maybe an external bluetooth keyboard would be a better solution but I don't use one, and I have never even seen one in person so someone else will have to verify that for you.

  • Confusing with AddJavaFile in jdev.conf

    I am confusing with the format in AddJavaFile in jdev.conf:
    for example:
    AddJavaLibFile ../../BC4J/lib/bc4juixtags.jar
    AddJavaLibFile ../lib/batik-xml.jar
    their absolute paths respectively are:
    /usr/jdeveloper/
    /usr/jdeveloper/jdev/
    could anybody give me some help?
    Thanks a lot!
    Peter

    sorry for my unclear question.
    my installation is <jdev_root> = /usr/jdeveloper/
    From the file, I got:
    AddJavaFile ../../BC4J/lib/bc4juixtags.jar
    it seems to me it equals : jdeveloper/jdev/BC4J/lib/bc4juixtags.jarActually it should be:
    /usr/jdeveloper/BC4J/lib/bc4juixtags.jar
    and not:
    /usr/jdeveloper/jdev/BC4J/lib/bc4juixtags.jar
    another line is:
    AddJavaFile ../lib/batik-xml.jar
    it seems to me it equals : jdev/lib/batil-xml.jarCorrect.
    there is unconsistency here (I may be wrong)Actually it is consistent. The jdev.conf file contains pointers to where JDev can find other components which it depends on. In the two cases which you point out, the first is part of the RT layer of BC4J (which is also shipped in iAS) and the second is the batik XML parser from Apache.

  • My confusion with logs in iAS 6.5

    Hi everybody,
    I am very much confused with the log files in iAS 6.5. Bit lengthy, but Kindly go through this slowly and help me in solving the same.
    (1) In the settings -> Control Panel -> Services window, i have enabled "Allow Service to Interact with Desktop".
    In the admin tool, i have checked "Enable Server Event Log" check box. I have also enabled the option "Log to console" and selected the message type to be "All Messages".
    When i did this, i was able to see the logs as console(command prompt windows). When ever i run a jsp/servlet/EJB containing System.out.println() statements, i was able to see the std out messages in the KJS.exe console. What should i do these std out messages in a file rather than a console?
    (2) In the settings -> Control Panel -> Services window, i have enabled "Allow Service to Interact with Desktop".
    In the admin tool, i have checked "Enable Server Event Log" check box. I have also enabled the option "Log to File", gave the file name as "logs\ias" and selected the message type to be "All Messages".
    When i did this, i saw the following files created under the installdir\ias6\ias\logs.
    ias.10817
    ias.10818
    ias.10819
    ias.10820
    ias.10821
    (10817 - kas port, 10818 - kxs port, 10819 - kjs port, 10820 - kcs port, 10821 - cxs port)
    Since, these log files contains the port number of the above mentioned processes, i expected them to be the log files of the processes with corresponding port numbers. For example, ias.10819 to be the log of KJS process, since its port is 10819. Is it correct?
    If it is correct, i am not able to see the System.out.println()
    messages in this file, though it appears in the console(as mentioned in point 1 ). Why is it?
    I want to see all the Std Out messages (which appears in KJS console) in a log file. What should i do for that?
    (3) In the iPlanet Application Server Administration guide (Page 90), i found a way to log to a file on Windows platform. As per that document, i changed the IAS_KASLOGFILE from 0 to 1 in the System Variable and restarted the system. It created the file by the name, KAS.log in the installdir/ias6/ias/logs.
    Now i was able to see the KAS process's console messages in this log file. But there is nothing written to the KAS console. Why is it?
    (4) What is the difference between the log file ias.10817 (created as per in point 2) and KAS.log (created as per in point 3)?
    thanks and regards,
    desigan

    Hi,
    Can you please let me know the resource from where you have got this information ?
    Thanks & Regards
    Ganesh .R
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support

  • HT201342 I'm still confuse  with this iCloud mail. I have 2 device which is iPhone and iPad, why every time I receive a mail from my iPhone it doesn't show on my iPad? Can you maybe help me out here thank you

    I'm still confuse  with this iCloud mail. I have 2 device which is iPhone and iPad, why every time I receive a mail from my iPhone it doesn't show on my iPad? Can you maybe help me out here thank you

    The iphone and ipad must be connected to the same icloud account.  Are you by chance using different IDs to connect from each device?

  • I am confused with the adobe photo shop album starter 3.0!

    Hello, I have always been interested in storing pictures on my computer via my scanner or digital camera, but now I want to organise them using adobe.. However it has left me more confused.. since I downloaded it, it automatically imported pictures...but when I click on my regular photo files on my desk top, it does say adobe photo shop at the top of the picture- so does this mean it is already imported into the adobe?? as i am confused with what photos I have got where now.
    In other words, I wanna make sure that all my pictures on my computer are in adobe. How do I do that ?
    Excuse the daft question but I hate computers sometimes!
    Thanks

    Hi again Colin(and Jim), if I got the wrong end of the stick (which it appears I did) then I humbly apologise for being oversensitive. I have had some miserable experiences in newsgroup forums before now and witnessed relentless bullying on occasions and so I may respond in a defensive matter automatically. Thank you for setting me straight :-)
    On a different tack, I wonder if you could help with another PSASE problem I have. When I go to print a number of prints on one page (eg.four to an A4 sheet-which it resizes to fit for you) there seems to be a loss of quality in the images. Is there a way of adjusting the resolution within the program, or do I need to adjust them within photoshop first ?

  • Hi we setup ISE in our lab and planning for prodution with 2000 user endpoints. We have SNS appliance but confused with ISE lice

    Hi we setup ISE in our lab and planning for prodution with 2000 user endpoints. We have SNS appliance but confused with ISE license bt plus and advanced..Please advise.

    Plus:
        Bring Your Own Device (BYOD)
        Profiling
        Endpoint Protection Service (EPS)
        TrustSec SGT
    Advanced :
        Bring Your Own Device (BYOD)
        Profiling
        Endpoint Protection Service (EPS)
        TrustSec SGT
        Mobile Device Manager (MDM)
        Health Compliance and Remediation
        Posture
    Base license is Perpetual

  • Confusion with Image/BufferedImage

    Hello,
    I'm trying to write an applet that displays and modifies local image files (gif). I'm running into some confusion with the different image APIs and drawing methods though.
    I want to read the files, display them, and then create new images from sections of the original ones. I wrote an applet that succesfully loads and displays files as Image objects, but then I saw that BufferedImage has a method getSubImage() that I thought I could use to create the new images.
    But my problem is that even without manipulating the images, I can't get them to display as BufferedImages. Here's the code, where I try to display the series of images twice, once as Image, once as BufferedImage, but the BI come out as black squares.
    public class myapplet extends Applet
         BufferedImage[] img = new BufferedImage[NUM_PICS];
         Image[] im = new Image[NUM_PICS];
         public void init()
              Toolkit t = Toolkit.getDefaultToolkit();
              Graphics2D bg;
              MediaTracker tracker = new MediaTracker (this);
              for(int i = 0;i<NUM_PICS;i++)
                   try
                        im[i] = t.getImage(gen.getLogo());
    //the getLogo method is from a class I wrote -
    //it returns a string with a filename
                   catch(Exception e)
                        System.out.println("ERROR: "+e.getMessage());
                   img[i] = new BufferedImage(70, 70,BufferedImage.TYPE_INT_RGB);
    bg = img[i].createGraphics();
    bg.drawImage(im[i],0,0,this);
         public void paint(Graphics g)
              Graphics2D g2 = (Graphics2D)g;
              for(int i=0;i<NUM_PICS;i++)
                   g.drawImage(im[i],10,i*70,this);
                   g2.drawImage(img[i],null,80,i*70);
    Any help would be great.

    You have to use the MediaTracker before drawing the image onto the BufferedImage:
    try {
    im[i] = t.getImage(gen.getLogo());
    tracker.addImage(im[i], i);
    tracker.waitForID(i);

  • Confusion with wiring - Cat5, Cat5e, Cat6?

    I am moving into a new build house and have some confusion with the wiring.
    So BT have wired from outside the house to a master socket inside the house.
    Inside the house I have an extension and there is a Cat5 or Cat5e cable (am not fully sure which) connecting the Master and the Extension together.
    I am interested in wiring Cat6 from the extension to other rooms.
    My Infinity HomeHub will be connected at the extension (as the Master socket has been unsuitably positioned).
    So my questions:
    1. What type of cable is usually run from outside the house to the Master socket? Does this determine the maximum speeds my home will be capable of?
    2. If I do not change the Cat5/Cat5e cable running between the Master and Extension to a Cat6 (keeping in mind that I am running my HomeHub from the extension) will I only ever achieve a maximum of Cat5/Cat5e speeds across my entire network?
    3. Do I need to change the cable between the Master socket and the Extension to a Cat6 cable?
    4. Alternatively, would I be better to ask the engineer to convert the extension into a Master?
    So confused!

    Hi unidentified,
    If you're having FTTC Fibre broadband (eg BT Infinity upto 40mbps or upto 80mbps product) then the external line will be a standard "copper" cable running into the property and terminating at the master socket. The external line is not a cat5 or cat6 cable, just a standard "Copper" phone line.
    If your having FTTP (Fibre to the Premises) (eg BT Infinity 160mbps or BT Infinity 300mbps product) then the external phone line would be a fibre cable that would enter your property.
    Cat5e cable can acheive upto 1000mbps and cat6 is capable of 10-Gigabit speeds in some cases, however at the moment you won't be needing anything like that. However in both cases having the DSL (in your case VDSL or VDSL2) signals down the Cat5e or Cat6 cable to an extension socket will likelky reduce the speed slightly.
    You may be best keeping the HomeHub or Openreach VDSL modem connected to the Openreach Master socket and having the Cat5e or Cat6 cable running to a router/switch or computer.
    Hope that helps
    jac_95 | BT.com Help Site | BT Service Status
    Someone Solved Your Question?
    Please let other members know by clicking on ’Mark as Accepted Solution’
    Try a Search
    See if someone in the community had the same problem and how they got it resolved.

Maybe you are looking for