OCI8 and ADODB loading image....

can u kindly check what am i doing wrong? i tried using oci8 and the image is displayed but when i use adodb, my browser(firefox) says "problem loading..." can you give me some example of your code? thanks!
OCI8
<?php
header("content-type: image/JPEG");
$getId = $_GET['id'];
$User = "scott";
$Password = "tiger";
$db = " (DESCRIPTION =\n";
$db .= "(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.111.3)(PORT = 1521))\n";
$db .= "(CONNECT_DATA = (SID = XE))\n";
$db .= ")\n";
$conn = ocilogon($User,$Password,$db);
$sql = "select signature from approvers where empid='0481'";
$stmt = OCIParse($conn,$sql);
if (!OCIExecute($stmt)) { print "execution failed"; exit(); }
OCIFetchInto($stmt, &$arr,OCI_RETURN_LOBS);
// Also tried with OCI_ASSOC
echo ($arr[0]);
?>
in AdoDB
<?php
header ('content-type: image/JPEG');
ini_set ('display_errors', 1);
error_reporting(E_ALL);
$getId = $_GET['id'];
include_once ('adodb.inc.php');
include_once ('adodb-exceptions.inc.php');
include_once ($_SERVER['DOCUMENT_ROOT'].'/conf/inc/conf-era.inc.php');
ini_set ('sendmail_from', MAIL_LOG);
ini_set ('error_log', ERR_PATH);
try
     $dsn = 'oci8://'.DB_USERNAME.':'.DB_PASSWORD.'@'.DB_SERVER.'/'.DB_SID;
     $db_Conn = ADONewConnection($dsn);
     $db_Conn->debug = 1;
     $arr = $db_Conn->GetOne("SELECT Signature FROM Approvers WHERE EmpId=:v_EmpId", array('v_EmpId' => $getId));
     #echo ($arr->fields[0]);
     echo ($arr);
catch (Exception $e)
     echo $e->getMessage();
?>
kindly help me guys! thanks! i can't see what's going on...

sir, just to give you a hint: as i stated previously, i can display specific column value of my record if my column is approverid but if signature is replace, no nothing displayed...
<hr />
(oci8): SELECT ApproverId FROM Approvers WHERE ApproverId=:v_EmpId   <code>[ (v_EmpId=&gt;'0481')  ]</code>
<hr />
ADORecordSet_array Object
[databaseType] => array
[_array] => Array
[0] => Array
[0] => 0481
[APPROVERID] => 0481
[_types] =>
[_colnames] =>
[_skiprow1] =>
[_fieldarr] =>
[canSeek] => 1
[affectedrows] =>
[insertid] =>
[sql] => SELECT ApproverId FROM Approvers WHERE ApproverId=:v_EmpId
[compat] =>
[dataProvider] => oci8
[fields] => Array
[0] => 0481
[APPROVERID] => 0481
[blobSize] => 100
[EOF] =>
[emptyTimeStamp] =>  
[emptyDate] =>  
[debug] =>
[timeCreated] => 0
[bind] =>
[fetchMode] => 0
[connection] => ADODB_oci8 Object
[databaseType] => oci8
[dataProvider] => oci8
[replaceQuote] => ''
[concat_operator] => ||
[sysDate] => TRUNC(SYSDATE)
[sysTimeStamp] => SYSDATE
[metaDatabasesSQL] => SELECT USERNAME FROM ALL_USERS WHERE USERNAME NOT IN ('SYS','SYSTEM','DBSNMP','OUTLN') ORDER BY 1
[_stmt] =>
[_commit] => 32
[_initdate] => 1
[metaTablesSQL] => select table_name,table_type from cat where table_type in ('TABLE','VIEW')
[metaColumnsSQL] => select cname,coltype,width, SCALE, PRECISION, NULLS, DEFAULTVAL from col where tname='%s' order by colno
[_bindInputArray] => 1
[hasGenID] => 1
[_genIDSQL] => SELECT (%s.nextval) FROM DUAL
[_genSeqSQL] => CREATE SEQUENCE %s START WITH %s
[_dropSeqSQL] => DROP SEQUENCE %s
[hasAffectedRows] => 1
[random] => abs(mod(DBMS_RANDOM.RANDOM,10000001)/10000000)
[noNullStrings] =>
[connectSID] => 1
[_bind] =>
[_hasOCIFetchStatement] => 1
[_getarray] =>
[leftOuter] =>
[session_sharing_force_blob] =>
[firstrows] => 1
[selectOffsetAlg1] => 100
[NLS_DATE_FORMAT] => YYYY-MM-DD
[useDBDateFormatForTextInput] =>
[datetime] =>
[_refLOBs] => Array
[database] =>
[host] => (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.7)(PORT=1521))(CONNECT_DATA=(SID=xe)))
[user] => era
[password] => 0rclDB3ra
[debug] => 1
[maxblobsize] => 262144
[substr] => substr
[length] => length
[upperCase] => upper
[fmtDate] => 'Y-m-d'
[fmtTimeStamp] => 'Y-m-d, h:i:s A'
[true] => 1
[false] => 0
[nameQuote] => "
[charSet] =>
[uniqueOrderBy] =>
[emptyDate] =>  
[emptyTimeStamp] =>  
[lastInsID] =>
[hasInsertID] =>
[hasTop] =>
[hasLimit] =>
[readOnly] =>
[hasMoveFirst] =>
[hasTransactions] => 1
[genID] => 0
[raiseErrorFn] => adodb_throw
[isoDates] =>
[cacheSecs] => 3600
[arrayClass] => ADORecordSet_array
[numCacheHits] => 0
[numCacheMisses] => 0
[pageExecuteCountRows] => 1
[uniqueSort] =>
[rightOuter] =>
[ansiOuter] =>
[autoRollback] =>
[poorAffectedRows] =>
[fnExecute] =>
[fnCacheExecute] =>
[blobEncodeType] =>
[rsPrefix] => ADORecordSet_ext_
[autoCommit] => 1
[transOff] => 0
[transCnt] => 0
[fetchMode] =>
[_oldRaiseFn] =>
[_transOK] =>
[_connectionID] => Resource id #8
[_errorMsg] =>
[_errorCode] =>
[_queryID] => Resource id #11
[_isPersistentConnection] =>
[_evalAll] =>
[_affected] =>
[_logsql] =>
[_numOfRows] => 1
[_numOfFields] => 1
[_queryID] => Resource id #11
[_currentRow] => 0
[_closed] =>
[_inited] => 1
[_obj] =>
[_names] =>
[_currentPage] => -1
[_atFirstPage] =>
[_atLastPage] =>
[_lastPageNo] => -1
[_maxRecordCount] => 0
[datetime] =>
[_fieldobjects] => Array
[0] => ADOFieldObject Object
[name] => APPROVERID
[max_length] => 4
[type] => VARCHAR2

Similar Messages

  • Safari is loading webpages extremely slow and not loading images...

    Not loading webpages a lot of the time and not loading images on sites such as Facebook, Twitter, etc. I'm new to Mac and I'm running Safari on a Mac Mini. Help? Also deleted ~/Libraries/Safari and it didn't work.

    Please answer as many of the following questions as you can.
    1. Have you restarted your router and broadband modem since you first noticed the problem? If the answer is no, do that now and see whether there's any change.
    2. Are any other web browsers installed, and are they also slow?
    3. What about other Internet applications, such as iTunes and the App Store?
    4. Are there any other devices on the same network that can browse the Web, and are they also slow?
    5. If you can test Safari on another network, is it slow there too?
    6. If you connect to your router with Wi-Fi and you can also connect with Ethernet, do that and turn off Wi-Fi. Any difference?

  • Automatically zoom and crop an image to fit in a square

    I've got an mx:Image which is loading an image from the web.  I don't know how big the image will be in advance.  I'd like the loaded image to fit within the mx:Image's square frame by zooming and cropping off the sides or top/bottom as needed.  In other words, if the image frame is 64x64 and the loaded image is 70x64, it will be centered and lose a few pixels on the right and left sides.  Is it possible to do automatically?  I've played with maintainAspectRatio and scaleContent but I haven't been able to get what I want.

    In an ideal world we would use a high resolution version with a 100% width set for every device (and screen size). Because of bandwidth reasons, the page should load only a version of the image intended for a specific width range.
    Sometime in the future we will (probably) be able to use this:
    <picture width="500" height="500">
       <source media="(min-width: 45em)" src="large.jpg">
       <source media="(min-width: 18em)" src="med.jpg">
       <source src="small.jpg">
       <img src="small.jpg" alt="">
       <p>Accessible text</p>
    </picture>
    However, this will not yet work. Therefore, ideally, a polyfill picturefill method that works quite well can alternatively be used:
    https://github.com/scottjehl/picturefill
    Solution:
    Call the picturefill.js (see above url for more information and sample code)
    body:
    <span data-picture data-alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia">
            <span data-src="small.jpg"></span>
            <span data-src="medium.jpg"     data-media="(min-width: 400px)"></span>
            <span data-src="large.jpg"      data-media="(min-width: 800px)"></span>
            <span data-src="extralarge.jpg" data-media="(min-width: 1000px)"></span>
            <!-- Fallback content for non-JS browsers. Same img src as the initial, unqualified source element. -->
            <noscript>
                <img src="external/imgs/small.jpg" alt="A giant stone face at The Bayon temple in Angkor Thom, Cambodia">
            </noscript>
        </span>
    This works in all browsers and devices. On a mobile platform only the lower resolution image will be loaded up.

  • Problem in loading images in JSP

    Hi
    My JSP page is loading few gif images.
    I am running tomcat 4 connected to apache 1.3.22 using MOD_WEBAPP connector.
    My JSP file loads perfectly alright when I load it directly from tomcat server that is port 8080.
    But when I load it from apache that is port 80, it is taking very long time and not loading images.
    Does anybody has (or had ) the similar problem?
    Please help me
    Thanks
    Raji

    I'm having the same problem displaying images when I call a jspt hrough Apache 2.0.39 from Tomcat 4.1.3.
    I am using mod_jk as my connector through Apache.
    Did you come up with a solution to displaying images when calling your JSP app through Apache?
    Thanks
    Lenny Sorey

  • If I set Firefox to refrain from loading images automatically, how can I view a single image, or a single page's images, without having to enter the site in the Exceptions list, only to go back and remove it when I'm done?

    I was hoping for a hotkey option or button on the toolbar to load images for a single page for a single session at a time. Turning off images really saves bandwidth and speeds load time on websites, but sometimes I'd like to view the images on a page, but only for this session. Is that possible, or do I have to go to the Exceptions page and allow a specific domain or page to load images and then go back and remove that domain or page when I'm done?

    *Image Block: https://addons.mozilla.org/firefox/addon/image-block/

  • Using Firefox to access facebook chat Button or online friiend chat button generates a Black screen with CANNOT LOAD IMAGES and no chat window opens.

    This does not happen in other browsers and it happens on a variety of computers I have access to and would seem to be a common problem but I can find no identical cases in my searches of
    Firefox , Facebook or windows help or Google search. My home machine is only a P2 with WINXPCORP but works fine and I have done all updates but still have this continuing problem every time I try to use Firefox
    to access Facebook chat but it does not happen with IE or chrome
    The response to clicking on chat button or friend chat is a black screen with small center square box with blue title bar that says
    '' VIEW IMAGE FULL SCREEN - (42) FACEBOOK X""
    center of box is ""! "" mark in yellow triangle and wording
    "" CANNOT LOAD IMAGES ''' OK
    clicking on OK returns to facebook page but no chat opens.
    Some times |VERY RARLEY if as the page loades you click on
    chat button with 1/2 second of it appearing chat will open.

    Hi,
    Please also see [https://support.mozilla.org/en-US/kb/Problems%20using%20Facebook%20in%20Firefox this.]

  • Why won't safari load images and connect to websites?

    We've had this problem intermittently for several months. When visiting SOME websites (though never the same ones twice) instead of loading images, it comes up with a blue question mark in a box. if we try to reload the page, it will do one of two things: it will either reload exactly the same, or, it will reload in a format that shows vertical written links - no images. it almost looks like programming language, but it's readable.
    also, when we go between links, we often get the message that "safari can't find the server". this is, again, erratic. If i try to go directly to the same website by typing in the address in the bar, i will get the connection. (so, if i go from youtube for example to try to connect to another website it won't work. but if i try to go directly to that website by just typing in the address myself, i can get it.) as i said, it doesn't always happen, but when it does it's a real pain!
    lately, i've had a new problem too, which seems to relate: when using hulu.com, it will not load the show saying it is unavailable and to clear my cache. I've done that... and it still won't reload. yet, when i go to google, and search hulu.com, and go to the website that way, i can get to the show page no problem. Or, i have to quit safari and then go back to hulu and, again, no problem.
    sometimes we can go for days without the problem, sometimes not.
    any ideas on how to help this problem would be MOST appreciated! thanks

    blue question mark in box
    Go to Safari > Preferences then select the Appearance tab. Make sure Display images when the page opens is selected.
    For server issues, try turning off the router for a few minutes, then restart it.
    Hulu requires the Flash plugin. Uninstall your current copy of Flash, then reinstall >  Troubleshoot Flash Player | Mac OS
    Try emptying the Safari cache more often.
    And reset Safari. From your Safari menu bar click Safari > Reset Safari. Select the top 5 boxes, click Reset.
    And how much free space on the startup disk?     Right or control click the MacintoshHD icon. Click Get Info. In the Get Info window you will see Capacity and Available. Make sure there's a minimum of 15% free disk space.
    Try Safari in another user account. Same problems there, then log back into your admin account, launch Disk Utility.  /Applications/Utilities
    Select the startup disk in the panel on the left then select the First Aid tab.
    Click: Verify Disk  (not Verify Disk Permissions). If the startup disk needs repairing, follow the instructions for Using Disk Utility to verify or repair disks

  • When i use IE9, i go to my emails and any pics in the mail open with the mail but with FF i have to download them is there a way to make the pics open in the mail, i set yahoo to load images automatically in the options menu this has had no effect, thanks

    some pictures(jpeg or gif) come as part of email if i use IE9 these images open as part of the mail, but with firefox i have to download them separately and then they don't appear in email. i have been in the options menu and allowed yahoo.com to automatically load images but this has had no effect, thanks

    Sounds like you did this on the fly.
    MM is supposed to open the Marker Panel Dialogue
    M just sets a marker
    Not sure if either are intended for on the fly during playback .
    There is also a Marker Icon on the Source Window Pane  >>

  • How can i control what images load on my project to save preload time and avoid loading all images, elements, divs not yet visible?

    Sup buddies,
    How can I control what images load on my project to save preload time and avoid loading all images, elements, divs not yet visible?
    As the project grows in size the load time increases. How does one control not loading all images ,divs,elements etc. until they're
    needed on the timeline? For example some sections are off and only become visible when recalled. My projects slowly grow in size so loading
    all images , is counter productive . My other option would be to create separate htmls but that breaks the seamless user experience .
    TY...Over N Out... 

    hello, kiwi
    quote: "Is there an easy way to burn a completed project to DVD, but keep only the (lo res, lo size) previews on my hard drive?"
    yes.
    maybe,...
    1. you might think of making DVD backups first prior to importing the photos into Aperture. "Store Files: In their current location" once in Aperture make low rez Previews, and export finished Project.
    or,
    2. bring in the photographs to hard drive first prior to importing the photos into Aperture. "Store Files: In their current location" once in Aperture make low rez Previews, and export finished Project.
    the low rez Previews will stay in Aperture but the high quality Versions will be exported onto DVDs and gone from the hard drive (if you delete the originals).
    another way would be to export small about 50-70 pixel wide high quality jpegs to a folder on your Desktop and import & keep these in Aperture Library as a reference. make metadata to show where the original Project DVDs are stored and DVD filing system used.
    victor

  • Whenever I go to a site or click anything, I always have to move my mouse for the page to load, why is this happening? (When I go to a site full of images, I move my mouse a little bit at a time and it loads one image at a time)

    Whenever I go to a site or click anything, I always have to move my mouse for the page to load, why is this happening? (When I go to a site full of images, I move my mouse a little bit at a time and it loads one image at a time)

    Hi, Tom.
    FYI: You've not stated which of your listed Macs is having the problem. However, the following may help in any case:
    1. Did you install Front Row using the Front Row hack on a Mac that did not ship from the factory with Front Row installed? If so, See my "Uninstalling the Front Row hack" FAQ. This has been known to cause a variety of problems, including the menu bar (Clock, Spotlight) issues you noted.
    2. If you did not install the Front Row Hack, an incompatible or corrupted Startup or Login Item may be partly to blame for the problems with the menu bar. My "Troubleshooting Startup and Login Items" FAQ can help you pin that down if such an item is causing the problem.
    3. As a general check, run the procedure specified in my "Resolving Disk, Permission, and Cache Corruption" FAQ. Perform the steps therein in the order specified.
    4. Re: Safari and Mail, if not sorted by any of the above, see also:• "Safari: Blank icon after installing Security Update 2006-002 v1.0."
    • My my "Multiple applications quit unexpectedly or fail to launch" FAQ
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • How do i insert a splash screen or a loading screen and a application image for a phone app on Dream

    How do i insert a splash screen or a loading screen and a application image for a phone app on Dreamweaver 6, 5.5 had the mobile application setting that is seemingly no longer present? and i also heard you can use animanted backgrounds on the mobile application in dreamweaver 6 but figuring out how to set the splash screen and application image like it was in 5.5 would be nice. All i can get to pull up is the web application i developed i am trying to build into a phone app on google chrome, if i could officially designate it as a phone app where i can set each splash screen and app image to where it is recognized as a phone app that would be really nice.

    Duely noted, the server will still not connect, so i have left an inquery in the suggested forum.
    Date: Mon, 15 Oct 2012 07:37:34 -0600
    From: [email protected]
    To: [email protected]
    Subject: How do i insert a splash screen or a loading screen and a application image for a phone app on Dream
        Re: How do i insert a splash screen or a loading screen and a application image for a phone app on Dream
        created by David_Powers in Developing server-side applications in Dreamweaver - View the full discussion
    jmed0411 wrote: the phonegap program loads for quite some time and eventually reaches to the unfortunate conclusion that the server cannot be reached and to please try again. Any ideas on how that problem can be mended if the solution is in my hands?? I haven't used PhoneGap Build recently, but I have seen several reports about problems connecting to the server. One suggestion that I've heard is that there has been unexpectedly high demand on the server since the launch of Edge Tools and Services as part of the Creative Cloud last month. As far as I know, the only thing you can do is wait, and try again later. You could also try posting in the PhoneGap Build forum: http://community.phonegap.com/nitobi/products/nitobi_phonegap_build.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4774799#4774799
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4774799#4774799
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4774799#4774799. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Developing server-side applications in Dreamweaver by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Loading images in a table and show this image in a html form

    Hi All,
    I'am a newbie in Oracle and PL/SQL.
    I need to load a image in a table and restrive this image and show it in a html form. I'd like to use a PL/SQL procedure.
    Thanks in advance for any suggestions.

    Hi,
    This forum is for Oracle9iAS Web Services discussion.
    I would recommend that you post your question to the 9iAS - General discussion forum.
    Regards,
    Tim

  • When I go to my webpage it comes up blank I right click to get the page info and it is not showing the media and load images is checked

    I have an online business and when I go to my websites they come up blank. I went to the same site on my other pc and it loads just fine. When I checked the page info and compared the two the one that loads ok shows general, media, permissions and security and the other shows everything but media. How can I get this back? I've checked everything I can think of. Load images is checked

    According to http://en.wikipedia.org/wiki/IPhone_5
    the iPhone5 has 1GB of RAM, and internal storage of 16, 32, or 64GB.
    It does not use SD cards.
    Fake iphones are really Android phones using the skin of iOS6.
    Click on the App Store icon. If it takes you to Apple's App Store, then it's a real iPhone.
    But if you are directed to Google Play, then I'm afraid you've gotten a copy.

  • How to load images in List from Xml and view the image and resize the image & save in Flex?

    Hi Friends,
    I am new to flex i am doing application for image resizing rotating and save the resize image.
    I want to load the images from xml file to listcontrol and show that images as a icon in the listview,then i want to drag that image to panel that time it should show it original size of the Image.then it allows user to resize ,crop,rotate the image.then i want to save the resize image,when i save the resize image it should replace the original image in the xmllist.
    I am looking for some useful suggession ,if you dont mind want to see some snippet code.
    It will help me to understand the concept.
    Cheers,
    B.Venkatesan

    Not in Crystal Reports Basic for Visual Studio 2008. You'll have to upgrade to CR 2008 (12.x). Then use kbase [1320507|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] as a guide on how to do this.
    Ludek

  • I was changing my desktop screen saver in system preferences screen protection.  Now it says it is "Loading Images" and won't stop.  The Colourful wheel goes around for ever and It does not stop. Can anyone help me?

    I was changing my desktop screen saver in system preferences>screen protection.  Now it says it is "Loading Images" and won't stop.  The Colourful wheel goes around for ever and It does not stop. Can anyone help me?

    Welcome to the Apple Support Communities
    I have seen a lot of cases like your issue, and it's easy to solve.
    First, open Disk Utility, select Macintosh HD in the sidebar and repair permissions. Sometimes, a permission can be damaged and it makes that an application doesn't work properly.
    If that doesn't work, open Finder, select Go menu > Go to Folder, type ~/Library/Prefereces, delete "com.apple.desktop.plist" and "com.apple.systempreferences.plist" and restart

Maybe you are looking for