Downloading of PPT using UTL_HTTP

Hi All,
I want one solution such a way that we have some urls stored in our database, so we are going to retrive the data that are in ppt format from this urls and store it in the ppt format in our database and my problem is the urls are password protected thats why when we use utl_http package we are getting blank ppt getting saved. So i want a solution as to how can we authenticate in the process ,while retrieving data from url.Can anybody please help me.
Thanks
Edited by: dil84 on Jan 19, 2009 11:45 PM

Hello,
Take a look at the following thread -
Re: UTL_HTTP.REQUEST_PIECES on a page that needs log in
Hope this helps,
John
Blog: http://jes.blogs.shellprompt.net
Work: http://www.apex-evangelists.com
Author of Pro Application Express: http://tinyurl.com/3gu7cd
REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

Similar Messages

  • Using utl_http to download a binary file to the server disk

    Hi,
    I need to download a binary file from the web into the hard disk of the server.
    I am using utl_http to do that. My program works on URLs that have text, but not on binary files. Does anyone have an idea how to do that?
    Thanks
    Rani
    Here is the program I am using:
    DECLARE
    req utl_http.req;
    resp utl_http.resp;
    value VARCHAR2(32767);
    fname utl_file.file_type;
    BEGIN
    utl_http.set_proxy('wwwproxy.myorg.com:8080');
    req := utl_http.begin_request('http://www.somelocation.com/abc.zip');
    resp := utl_http.get_response(req);
    fname := utl_file.fopen('DBTEMP','testfile.zip','w');
    LOOP
    utl_http.read_line(resp, value, TRUE);
    utl_file.put_line(fname,value);
    END LOOP;
    utl_http.end_response(resp);
    utl_file.fclose(fname);
    EXCEPTION
    WHEN utl_http.end_of_body THEN
    utl_http.end_response(resp);
    utl_file.fclose(fname);
    END;

    Try to use UTL_HTTP.READ_RAW.

  • Download to ppt functionality from a bsp page

    download to ppt functionality from a bsp page .
    can it be done.

    Hi Saad,
    yes that can be done.
    A tricky way that only works in IE is to use ActiveX-Scripting and script the Powerpoint. This way I cannot recommend as you need to lower the security settings of IE and it is pretty cumbersome to do and very slow if you generate large ppt's.
    The way I'd suggest would be to use the new 2007 pptx-format. This file format is basicaly a bunch of XML-files that are packed in the zip-format. As of 640 you can use the class cl_abap_zip to handle zip-files.
    To generate ppt's
    - Check in a empty pptx-file into the mime repository.
    - Get this template and open it using the cl_abap_zip class.
    - Adjust the respective XML-files by using the ixml-library.
    - Update the adjusted XML-files in the zip-archive.
    - Render the zip to an xstring and send this one as response to the browser.
    At the very beginning you need to get used to the OPEN XML-format but checking the web or simply testing it by saving files in the pptx-format and having a look at the content should bring you close to the solution pretty fast.
    If you use older versions of Office you can install the FileFormatConverter from Microsoft to get the new formats supported (I think down to Office 2000). But be aware that if the converter asks you to update you most probably have an error in your generated/adjusted file so the error message is missleading and not helpfull to find the error.
    Hope that helps.
    Best Regards
    Michael

  • Can I convert PDF to PPT using adobe acrobat x standard? If so, how?

    Can I convert PDF to PPT using adobe acrobat x standard? If so, how?

    Hi meganl52100253,
    With Acrobat X, you can save to Word and Excel format by choosing File > Save As. But saving to PowerPoint wasn't introduced until Acrobat XI.
    You're welcome to try Acrobat if you'd like. You can download a free 30-day trial from http://www.adobe.com/products/acrobat.html.
    Best,
    Sara

  • How to perform authentication on proxy using utl_http package?

    Hi,
    I am using Oracle 8i database (ver:8.1.7). I want to use the utl_http package to perform http requests. Within my company, I am forced to use a proxy and I have to be authenticated on that proxy. How can I authenticate myself on the proxy using utl_http.request function on Oracle 8i?
    Thanks a lot.
    Paulo.

    UTL_HTTP
    The UTL_HTTP package makes Hypertext Transfer Protocol (HTTP) callouts from SQL and PL/SQL. You can use it to access data on the Internet over HTTP.
    With UTL_HTTP, you can write PL/SQL programs that communicate with Web (HTTP) servers. UTL_HTTP also contains a function that can be used in SQL queries. The package also supports HTTP over the Secured Socket Layer protocol (SSL), also known as HTTPS, directly or through an HTTP proxy. Other Internet-related data-access protocols (such as the File Transfer Protocol (FTP) or the Gopher protocol) are also supported using an HTTP proxy server that supports those protocols.
    When the package fetches data from a Web site using HTTPS, it requires Oracle Wallet Manager to set up an Oracle wallet. Non-HTTPS fetches do not require an Oracle wallet.
    See Also:
    Chapter 102, "UTL_URL"
    Chapter 100, "UTL_SMTP"
    Oracle Advanced Security Administrator's Guide for more information on Wallet Manager
    This chapter discusses the following topics:
    UTL_HTTP Constants, Types and Flow
    UTL_HTTP Exceptions
    UTL_HTTP Examples
    Summary of UTL_HTTP Subprograms
    http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96612/u_http.htm#ARPLS070
    Joel P�rez

  • HFR Reports imported into ppt using smart view

    Hi All,
    Hyperion financial reporting version:11.1.2.334
    ORACLE smart view version for office :11.1.2.5.210(Build 042)
    Microsoft power point version 2007
    Hyperion financial reporting  reports imported into Microsoft power point presentation  using smart view, total 55 HFR reports are imported into power point presentation.
    The  entire ppt file with 60 slides ,55 reports+5 textual commentary slides ,total size of the pptx file is 21 mb,
    We have tried using the compress picture option available in power point, reducing the file size to 3.5 MB after compression(96 ppi ,see attached image),but image quality is lost, numbers in some images not readable at all.
    Also tried the compression options with 220ppi,150ppi,but not seen any change in the file size reduction.
    We are looking at reducing the size of ppt file as 20 mb file is difficult to transfer by email or to download, is there any workaround or other best solutions to reduce the size of an image ,we are ok to lose the quality of an image if the numbers and labels are readable.
    Thanks in advance for your valuable suggestion.
    Regards,
    Ashok

    Hi Joshi,
    Thanks a lot for your valuable time and inputs,i have tried with winzip and as well 7 zip,but not reduced the size.
    if i see my users existing ppt file size is 4 mb (60 slides),but these reports designed in excel sheet (not in HFR) and then copied to  PPT.
    Tabular reports copied from excel to ppt as windows metafile and graphs and charts are as image file.
    is there any possibility to change the image format before or after importing the HFR report into ppt using any SDK in smart view?
    thanks in advance for your valuable inputs,it will be a great help.
    Regards,
    Ashok

  • My iTunes downloads were made using my old gmail address.  I had to quit using this email address as it got hacked.  I created a new gmail account.  How can I get my iTunes downloads into the new gmail account?

    My iTunes downloads were made using my old gmail address.  I had to quit using this address  as it got hacked.  How do I get my iTunes downloads into my new iTunes account that was created with a new gmail address?  In my old iTunes account (with the old gmail address,  I can't 'update' my email address or even 'add an alternate address' as I had already created this gmail account and inputting the new address into iTunes gives me the 'pop-up' that 'this account is already in use.'   Advice please!

    Good luck. It took me weeks to fix this when I had to do it. Your old ID branches out in lots of places. You may have to delete app and get them again, at least that is what Apple told me. Plus, all of your settings on your iPad that required any ID, will have to be changed. My old ID kept showing up in different places for weeks. Changing it on Apple.com is just the beginning.

  • Cant download itunes 10 using windows vista error installation of assembly policy 8.0 microsoft VC80.CRT

    cant download itunes 10 using windows vista erroe about installation of assembly

    These ones are typically caused by underlying problems on the PC that also often cause Windows Updates to fail to install. If we can fix the Windows Update trouble, we can usually get the iTunes trouble cleaned up en passant.
    Go into your Windows update and try to check for new updates. If updates install, stock up on the ones you're behind on, restarting the PC if requested to do so. After the restart, try installing iTunes again. Does it go through this time for you?
    If windows updates fail to install, go into your Update History and doubleclick the failures. What alphanumeric codes appear for you? (For example, 8007000B.)

  • My apple id is not working on my ipad mini not allowing me to download ios7 and use some apps that need internet

    my apple id is not working on my ipad mini not allowing me to download ios7 and use some apps that need internet

    You change the name of your ID at https://appleid.apple.com.  See http://support.apple.com/kb/HE40.

  • How to send XML using UTL_HTTP

    I am trying to workout how to send XML data to a webserver using UTL_HTTP but am not getting any reply
    I need to submit the following XML document to a server "http://api.fastsms.co.uk/api/xmlapi.php"  Their instructions are "The XML Document should be posted unencoded, with a UTF-8 character set as parameter 'xml'"
    If I submit the following XML on their test form
    <?xml version="1.0"?>
    <apirequest version="1">
    <user>
      <username>**USER**</username>
      <password>**PASSWORD**</password>
    </user>
    <application>
      <name>Example Application</name>
      <version>1.0</version>
    </application>
    <inboundcheck lastid="10711399"/>
    </apirequest>
    I get an XML response back with the messages in my inbox. 
    This is the code I am trying to use to accomplish the same from PL/SQL : I know a response is coming back as there is header information - just no content.  What am I doing wrong ?
      l_xml VARCHAR2(5000);
      req utl_http.req;
      resp utl_http.resp;
      header_name VARCHAR2(256); -- Response header name
      header_value VARCHAR2(1024); -- Response header value
      response_text VARCHAR2(4000); -- Response body
      l_url VARCHAR2(100);
    BEGIN
      l_xml := 'xml=<?xml version="1.0"?>';
      l_xml := '<apirequest version="1">';
      l_xml := '<user>';
      l_xml := '<username>**USER**</username>';
      l_xml := '<password>**PASSWORD**</password>';
      l_xml := '</user>';
      l_xml := '<application>';
      l_xml := '<name>Example Application</name>';
      l_xml := '<version>1.0</version>';
      l_xml := '</application>';
      l_xml := '<inboundcheck lastid="10711399"/>';
      l_xml := '</apirequest>';
      -- Open HTTP connection
      l_url := 'http://api.fastsms.co.uk/api/xmlapi.php';
      req := utl_http.begin_request(l_url,'POST',utl_http.HTTP_VERSION_1_1);
      -- Set headers for type and length
      utl_http.set_header(req,'Content-Type','application/x-www-form-urlencoded');
      utl_http.set_header(req,'Content-Length',to_char(length(l_xml)));
      -- Write parameter
      utl_http.write_text(req,l_xml);
      -- Read response file
      resp := utl_http.get_response(req);
      -- Print out the response headers
      FOR i IN 1 .. utl_http.get_header_count(resp) LOOP
        utl_http.get_header(resp,i,header_name,header_value);
        logging_pkg.info(header_name || ': ' || header_value);
      END LOOP;
      -- Print out the response body
      BEGIN
        LOOP
          utl_http.read_text(resp,response_text);
          logging_pkg.info(response_text);
        END LOOP;
      EXCEPTION
        WHEN utl_http.end_of_body THEN
          logging_pkg.info('End of body');
      END;
      -- close http connection
      utl_http.end_response(resp);
      EXCEPTION
        WHEN utl_http.end_of_body THEN
          utl_http.end_response(resp);
    END;
    Cheers,
    Brent

    Hi Billy
    Yikes - how embarassing !  Thanks for pointing out my beginners mistake there.  I've fixed my code - and also implemented the substitutions of parameters like you suggested - I like that approach.
    Unfortunately the end result is no better - the line
    utl_http.read_text(resp,response_text);
    Still returns nothing back
    The headers that are coming back are
    Date: Thu, 04 Jul 2013 08:31:56 GMT
    Server: Apache/2.2.16 (Ubuntu)
    X-Powered-By: PHP/5.3.3-1ubuntu9.3
    Expires: Thu, 19 Nov 1981 08:52:00 GMT
    Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
    Pragma: no-cache
    Vary: Accept-Encoding
    Content-Length: 0
    Content-Type: text/html; charset=UTF-8
    Connection: close
    I guess I will need to try chasing it with the fastsms vendor so see if they can check my incoming request and see if there are any glaring problems. I know the xml is correct as I am now logging the xml string just before I send it and when I take that string and put it in their test form it works perfectly - something else in the puzzle is missing. I've had no experience using utl_http before - perhaps it's no possible to read the xml repsonse using this ?
    Anyway, thanks for your help Billy.
    ps - How do you paste your code into your message to get that formatting ?
    Cheers,
    Brent

  • Run a report in PL/SQL using utl_http.request

    Hi
    I need to run a report in PL/SQL using utl_http.request
    How that can be done ??
    Thank you!

    Okay, backtrack.
    A web server can deliver all kinds of content. From static HTML pages, to XML files and videos and dynamic content. Including reports.
    The communication language (protocol) used to talk to a web server is HTTP.
    UTL_HTTP is an Oracle PL/SQL library that implements the client side of this communication. It allows the developer to write code that acts like a web browser and communicates with a web server.
    Now what do you not understand and cannot use?
    HTTP is not simple and easy. You need to understand the basics of this communication language in order to communicate successfully with the web server. Like knowing the difference between GET and PUT and POST commands, how the URL query string works and so on.
    Once you know that, you can look at how the web server provides reports. How do you authenticate as a web browser with the web reporting system? What URLs do you use to access which reports? How do you pass name-values to the web server as report parameters? What HTTP response formats (MIME types) does the web report server provide? Which one do you plan to use and how do you parse that response into a meaning structured data format?
    If you're thinking it is "easy", think again. Sure, someone here can provide sample code that for example grabs a CSV report file from a web server and (using a pipeline table function), turn that into rows and columns. But that will not teach you the fundamentals you need to know and not equip you with dealing with the problem with your own brains, hands and keyboard.
    PS. In other words, learn to crawl and walk before trying to run. Get to grips with how HTTP works before diving into the deep end of web report integration.

  • I am trying to download an app using a new Apple ID. When I try and do this it still links the app to my old Apple ID and says I need to enter my old Apple ID password to download it from iCloud. Help anyone?

    I'm trying to download an app off of the App Store and the little cloud pops up next to the app I wanna download because I used to have it when I had my old Apple ID. How do I get this off so I can get the app again using my current Apple ID?

    Did you create a NEW Apple ID or did you change the email address for your OLD Apple ID? This will affect how you update apps in the future.
    Anyway, go to Settings/iTunes&App Stores, log out, then log in with the new ID.

  • I downloaded some albums using my iphone, i then synced it with my PC. Now all the album artwork has gone from the songs i downloaded on my iphone, but not on the itunes on the pc. How can i get the artwork back on my iphone?

    I downloaded some albums using my iphone (3GS), I then synced it with my PC. Now all the album artwork has disappeared off my iphone but not off itunes on the PC. How can I get the album artwork back onto my iphone?

    I had the similar problem last night and found a solution (although it takes more than a few clicks).  Highlight all the album tracks in itunes on the pc and right click "get info". Check the artwork box in this window.  I found that the now playing art was showing up in the itunes window, but on songs that were missing artwork showed nothing in the get info box.  When I replaced the artwork by using the artwork command, or manually adding it into the "get info" window.  It was annoying but my iphone updated every album.

  • Error while invoking webservice using UTL_HTTP from PL/SQL Block

    Hi All,
    I am invoking a webservice (SOAP Request) from a PL/SQL block using UTL_HTTP package.
    I am able to send the complete request and am getting the required instance on the BPEL Console, but the process is erroring out while getting response back.
    and the PL/SQL Block is ending in error mentioned below:
    ERROR at line 1:
    ORA-29266: end-of-body reached
    ORA-06512: at "SYS.UTL_HTTP", line 1321
    ORA-06512: at "APPS.CSM_BPEL_TEST_PKG", line 34
    ORA-06512: at line 1
    Package is completing successfully if i test in local DB and local BPEL.
    But giving above error in client's.
    Can anyone let me know what is the cause of this.
    Thanks in advance

    I got it working by making process Synchronous.
    But with asynchronous process it is still same error.
    Thanks...

  • Error while invoking webservice using UTL_HTTP package

    Hi All,
    I am invoking a webservice (SOAP Request) from a PL/SQL block using UTL_HTTP package.
    I am able to send the complete request and am getting the required instance on the BPEL Console, but the process is errorring out while getting response back.
    and the PL/SQL Block is ending in error mentioned below:
    ERROR at line 1:
    ORA-29266: end-of-body reached
    ORA-06512: at "SYS.UTL_HTTP", line 1321
    ORA-06512: at "APPS.CSM_BPEL_TEST_PKG", line 34
    ORA-06512: at line 1
    Can anyone let me know what is the cause of this.
    Thanks in advance

    My guess would be that your request is not properly constructed,
    29266, 00000, "end-of-body reached"
    // *Cause:  The end of the HTTP response body was reached.
    // *Action: If the end of the HTTP response is reached prematurely, check if
    //          the HTTP response terminates prematurely.  Otherwise, end the
    //          HTTP response.John

Maybe you are looking for

  • HELP please my imac DV+ is about to die....

    iMac DV+   Mac OS X (10.4.7)   Here's the story: i bought an imac DV+ long ago and it worrked well all the time. Now its completly messed up. almost every application is crashing, the performance is not available any more. I've done everything: Ran t

  • Add Tax-Code in Shopping Cart... when we create PO

    Hi, Area: SRM 5.0, Classic Scenario. Friends, I am asked to add Tax-Code in the Shopping cart to be used in the PO creation in R/3. Was asked to use a BADI. We dont have tax created in the Shopping carts. The Tax ix not calculated here, so the Tax-Co

  • Problem with WRT160NL

     I bought a WRT160NL a week ago , it worked fine until now.    I am connected through the net with a PPPoE connection . I've set the router to stay connected all the time to the internet and yesterdy i've noticed that my download speed was getting ve

  • AppleTV sound stuttering on playing local videos

    Is anyone having this problem? I have some mp4's (400 kbps) located inside AppleTV. I was able to play back with no issues a couple of weeks ago. Yesterday, when I ran the same video, the mp4's are played back with stuttering sound. I have the same i

  • Re: Smart Talk problem.

    I also cannot seem to be able to register on the Smart Talk app. It gets stuck on the second step (link to your home phone) as it does not ring my landline number. I called the UK customer service team 0800-800151 who said they are from Broadband tec