How to download file based on the URL and save it as BLOB in db

Hello

How can there be a file (image, pdf file,...) which is accessible by the URL that is stored as a BLOB object in a table?

For example:

procedure saveFileToDbasBlob (p_file_url varchar2) is

Start

-- 1. get a folder by accessing a URL

-- 2. Save it as BLOB in a database table

-- 3. Save it in a DIRECTORY on the server

end;

/

Thanks much for the advice.

Tomas

Example:

SQL> var doc CLOB
SQL>
SQL> begin
  2          :doc := httpuritype( 'http://my-server.my-domain.com' ).GetClob();
  3  end;
  4  /

PL/SQL procedure successfully completed.

SQL>
SQL> print doc

DOC
--------------------------------------------------------------------------------

If a proxy should be used, call UTL_HTTP. Set_Proxy().

Tags: Database

Similar Questions

  • How to download an image in the folder and view using MySQL?

    Hello

    I want to create a page where a user can upload a picture and then I want to keep the details of the image in MySQL and PHP dynamic text allows you to display the image. Is it still possible? I have so far failed in my quest to find help on google or anywhere else besides.

    Basically what I want to do is create a page where the houses/lodges can save their information: name of the institution, Image of the institution, location, website, price range, etc. I want to allow them to download a picture from their school and the download location to a folder and, as I mentioned earlier, store only the information required to retrieve and display the image in the MySQL DB. Then, when a customer uses the search page, I want to display the results in a way that will allow them to see the image beside the name.

    Please PLEASE please someone help me I will be more than very happy. If someone has a script they let me use or at least a good tutorial or a link to worthy of information please let me know.

    Thanks in advance.

    Cedric

    There are many facts about PHP scripts or tutorials out there (google 'PHP file upload') that help you download the files in a directory on your server, but I ve never pinned scripts/tutorials that are a little "specific Dreamweaver' and you say how to integrate this functionality with insert/update server behaviors recording existing and even save info to files in a database.

    At this point, you can consider using an extension of Dreamweaver as PHP X Upload (by FelixOne) which seems to satisfy all the requirements you mention.

    See you soon,.

    Günter

  • Call the procedure this file download, but not from the URL

    Hello

    Oracle 11g, Apex 4.1.1.00.23.

    I have a procedure that generates a CSV of a query (BLOB). The query uses the apex collections.
    As it seems impossible to use collections of the apex outside Apex, I can't call this procedure from the URL to download the file (the query fails).

    How can I call my procedure on click of a button, without reloading the page, and without calling the URL ?

    I have some ideas like the creation of a new page, with a conditional header process that calls my procedure to download the file, then call it in a popup, etc... but I need a simple solution...

    Thank you.

    Yann.

    PS: actually, I need the same functionality when you change a process, let us say a process page, in the source attribute, you link < police = "courier" > [Download Source] < / font >, this link simply calls < police = "courier" > javascript:doSubmit('DOWNLOAD') < / font >, but it seems that the page is not reloaded. That's exactly what I need, it does not call for any procedure in the URL, and it does not reload the page.

    Use an application process. These run in the security model for APEX, including the use of the collections.

  • How to create a '. '. The URL file"of a Web page I visit

    How to create a '. '. The URL file"of a Web page I visit

    Check these

    deskCut {web link}
    This extension adds desktop shortcut creation for the
    context menu for Windows, Linux and Mac.

    My CopyFixer {web link}
    Use Ctrl + C when nothing selected to copy the page title and the url in
    various (base model) format.

    Send the URL of the tab {web link}
    Send a list of URLS tab browser to email, webmail or the Clipboard

  • How do I script in DIAdem to include specific lines of code (similar to .ini in LabVIEW files) based on the computer/user?

    I took Basic training courses so DIAdem Advanced and have been scripting for several months.  I am interested in how to include specific lines of code based on the computer.  Told me it would be similar to .ini in LabVIEW files, although I've never used myself .ini files.

    Hi Karen,.

    What do you mean by "includes the lines of code?  Do you mean what happens when you run a command 'ScriptInclude()' or 'ScriptCmdAdd()' in a tiara VBScript?  Or do you mean that you want to run several lines as DIAdem begins, similar to 'ScriptStart() '?

    What do you mean by "computer-based?  Do you mean you want to implement different batch files on different computers, but you are still using the same file (named) command on each target computer?  Or do you mean that you want to implement the same command on all target computers file, but you want different commands to run this file based on the computer on which you are.  In the latter case, how do you determine computer on which you are on - MAC address, logged in user name, or what?

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • How to download MicrosoftFixit50202.msi of the flash player for my not more long computer work - error 0 x 80070002

    How to download MicrosoftFixit50202.msi of the flash player for my not more long computer work - error 0 x 80070002.   I found the site for download fixit, but I have no desktop feature other than the startup repair options.  I thot I could download fixit from my flash drive solution, but I can't find a command prompt to access.  It is the only page from command prompt I can find... I'm in x:\windows\system32\cmd.exe trying to find the good order for my location flashdrive G:

    I used to go G and get G but it says only that go and get are not internal or external commands and not an executable program or batch file

    HELLLLLLLPPPPPPP!   Thank you!

    x:\ I do not think it is a 'valid' for what you intend. I used a 2nd computer and the original disk, I don't remember tho if I used windows file transfer or just copy, but I had the disc copied to the flash drive and reinstalled windows 7. I have still no working dvd rom (x 2) they open and close (sometimes), but the drivers need to be mounted to something incomplete. repair is absent as well. some other problems too but its been executed in this way for months (apx5). here and there, I get an email from answers, that's how I arived here really (enroute) hope this helps (a bit)

  • External BB10 Webworks/Cordova opening HTML pages on the device: "this file is not found. Check the URL and try again. »

    Hello fellow people,.

    IM quite in my application of Cordova/Webworks which downloads and save an html file in the SD (blackberry.io.sharedFolder).

    At this point, the config.xml file is defined as:

    read_device_identifying_informationermit >

    access_sharedermit >

    ermissions >

    Now, I'm trying to open the downloaded html that is saved to file:

    /Accounts/1000/removable/SDCard/MainFolder/subfolder/file.html

    My webapp, I try to open as: window.open (path, _self);

    Where path is the file above (which exists on the device!)

    Path is also, with the blackberry.io.SharedFolder + "/ MainFolder/SubFolder/file.html".< of="" that="">

    Also, I get the error:

    This file is not found. Check the URL and try again. If the URL is correct, check that your card is correctly inserted on your device.

    I am running and development off the BB10 Simulator.

    The console does not throw any error that I see.

    Any help or advice would be appreciated.

    See you soon,.

    @varunasingh

    Well, this is awkward.

    I have myself fixed by adding the string: "file://" on my road.

    I hope that others see it until they are too uptight.

    This has been resolved. Thanks for reading.

  • Preview in the browser opens the local file instead of the url in DW CC 2015

    In 2014 Dreamweaver when I defined a site, I check it too remote and test server since they are the same. Once I finish editing I use Ctrl + Shift + u to upload to the server and if it is not still open in the browser, I press F12 to preview, and he opens the url. In 2015, Dreamweaver, I uncheck/remove the test server and leave only the remote server for so I have a defined test server, whenever I have downloads on the server automatically (which is annoying if you're not done with your changes yet or you have a little time of latency on your FTP connection). It's bulky, since it's a habit whenever I have some changes and download only when I'm about to test the changes. With the undefined testing server, when I press F12, the DW redirects to the local file instead of the URL defined in site settings. Now, I have to type the full url for each page I test. It is an approach back the previous version. Either enable in the browser preview, open the real link, as defined in site settings or please have an option to disable the auto push when recording. Thank you!

    First of all, you are right in your new configuration that remote and testing server should not be in the same.  It is not a good habit to get.  However, without a test in place server, DW will only use the local file to test because you don't want to push the Webcam page live on the server until it is complete.  In this case, DW creates a temporary file that you can view on your local computer.  In general, it is recommended to have a test server, if that exists within your local environment with local installation of WAMP/MAMP or Windows Server.  Or a specified test server environment that is not accessible to the public where you can test.

    In addition, to save them automatically download to the server and overwrite the file direct download or not, those are 2 settings to DW within which can be displayed/hidden.  First of all, in the DW preferences, there is a setting for "Preview in browser".  In this context, there is a checkbox to choose whether to display a preview with a temporary file.  If you have no other choice then to use the server as a test platform, you probably want to check this box to preview using a temporary file rather than overwrite the direct file each time.  Then if you go to the server management and change your test server, go to the Advanced tab and uncheck the box for "check automatically download files on the server.  This will disable the download file automatically the file on the server when you save, allowing you to download only when you preview and test.

  • How to share files uploaded in the creative cloud with other members of creative cloud?

    How to share files uploaded in the creative cloud with other members of creative cloud?

    Should be easy.  Try this...

    1. In thumbnail view, click the small triangle (pointing down) in the lower right corner of the asset you want to share.
    2. On the blue icon toolbar that appears, click on the share icon (the third icon from the left, just to the right of the trash icon). The sharing dialog box should appear.
    3. In the sharing dialog box, enter the e-mail address of the person with whom you want to share assets, then click on the button send an email - it will receive an email with a link to your assets. OR
    4. You can also copy a link to the asset and paste that in your own e-mail client if you wish.  To do this, click on the link icon (looks like a 'chain' and to the right of the icon to email "envelope")-then click on the button, copy the link.

    Note that stock options are not available if your asset is set to 'Private' - you can control if an asset can be seen (or downloaded) by others by clicking the control Public/private (green or red icon "lock").

    You can also access the same controls hand, if you click on the file to see him score a point (you can do display thumbnails or list view); Click on the share icon near the top right of the window of the browser (to the right of the name of the asset).

    Hope that helps.

  • How to disable "Search with" in the url bar in Firefox Developer?

    How to disable "Search with" in the url bar in Firefox Developer?
    Thank you

    Hi hamid, in order to change this enter on: config in the address bar of firefox (confirmed the message information where it appears) and search for the preference named browser.urlbar.unifiedcomplete. Double-click it and change its value to false.

  • After the update the new version cannot determine file downloads. In the eyes to determine the file, but download files go in C / documents and settings even

    After the update the new version cannot determine file downloads. In the eyes to determine the file, but download files go in C / documents and settings even if I chose another folder

    Hello, there is a general regression in firefox 27 allowing any files to upload directly to a root drive. Please try to create a subfolder (like D:\Downloads) and set as the default location for downloads...

    See also bug #958899.

  • Help me how to download files from icloud

    Help me how to download files from icloud

    Help me how to download files from icloud to my phone directly

  • How to download a picture of the camera or scanner?

    How to download a picture of the camera or scanner with paint for vista?

    Hello

    I suggest you to consult the following Microsoft articles and check if it helps.

    How can I get pictures from my camera to my computer?

    http://Windows.Microsoft.com/en-us/Windows-Vista/how-do-I-get-pictures-from-my-camera-to-my-computer

    Scan a picture: http://Windows.Microsoft.com/en-us/Windows-Vista/scan-a-picture

    Hope the information is useful.

  • How to download my photo as the user's windows picture, how do I add my profile in the OS as an administrator

    How to download my photo as the user's windows picture, how to add my profile in windows OS (vista, xp, win98se) as an administrator windows/PC?

    Hello

    You can choose an image that will be associated with your user account and shown on screens or menus that display your user name, such as the home screen or the start menu.

    Follow the steps in the article mentioned below:

    Windows Vista: http://windows.microsoft.com/en-US/windows-vista/Choose-a-picture-for-your-user-account-and-Start-menu

    Windows XP: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ua_picture_change_w.mspx?mfr=true

  • Trouble with my email, I try all I get the following, windows update cannot download files due to the error 3048,3...

    original title: what is 3048,3

    I have a problem with my email and everything I try the update of windows I get the following, can not download files due to the error 3048,3... Thank you

    Hello

    ·         What mail client do you use?

    ·         Update you are trying to install?

    ·         What is the full error message that you receive?

    ·         What is the exact error message that you receive by email?

    I suggest to reset Windows Update components and check if it helps.

    See the Microsoft KB article below:

    http://support.Microsoft.com/kb/971058

Maybe you are looking for