Download images to local machine (Urgent!)

I would like to download over 600+ images(BLOB format) from a table in my application that is built in Application Express to my local PC. After revising the images, I need to upload all the images back to the table. I am not sure if I can run some PL/SQL code to do the download and upload task. If it is doable, how can I do it? Thanks.

Charleen,
I can think of a way to quickly get them out:
Use something like this application from the APEX Studio: http://htmldb.oracle.com/pls/otn/f?p=18326:7:::::P7_ID:2242
You will have to change the code so that it uses the table where your images are stored. You'll also want to change the Max number of rows to something > 600 to get all of your images on a single page.
Use a tool such as Nici (http://www.nicisoft.com/index.html) to save all of the images from the web page - essentially, you will get all 600+ of your images as well as any template-based images.
Make your changes to each image, and then... well, unfortunately, I can't think of a good, automated way to bulk upload them now. If I come across one, I'll be sure to update this thread.
Hope this gets you half way there!
- Scott -

Similar Messages

  • Download file to local machine using WPG_DOCLOAD.download

    Hi ,
    i am using database 11g and i am trying to write to file on database server using utl_file and download to the local machine by pl/sql procedure . i am directly executing this procedure in pl/sql . i am getting ORA-06502: PL/SQL: numeric or value error when executing owa_util.mime_header ('application/vnd.ms-excel',TRUE); statement in the procedure . not sure what is happening and i am new in using these features
    here is my code
    CREATE OR REPLACE PROCEDURE UTL_TEST_DOWNLOAD
    AS
    output_file utl_file.file_type;
    vexists BOOLEAN;
    vfile_length NUMBER;
    vblocksize NUMBER;
    l_blob BLOB;
    l_bfile BFILE;
    BEGIN
    output_file:=UTL_FILE.FOPEN('DATA_DIR', 'timesheet.csv', 'w');
    UTL_FILE.PUT_LINE(output_file,'COST_CENTRE'||
    'HISTORY_DATE'||
    'REF_NO'||
    'FIELD_NAME'||
    'VALUE'||
    'DATA_TYPE'||
    'CHANGE_DATE'||
    'INT_REF');
    UTL_FILE.fclose(output_file);
    UTL_FILE.FGETATTR('DATA_DIR','timesheet.csv',vexists,vfile_length,vblocksize);
    IF vexists THEN
    DBMS_LOB.createtemporary (l_blob, TRUE, DBMS_LOB.SESSION);
    l_bfile := BFILENAME ('DATA_DIR', 'timesheet.csv');
    DBMS_LOB.fileopen (l_bfile,dbms_lob.file_readonly);
    DBMS_LOB.loadfromfile (l_blob, l_bfile, DBMS_LOB.getlength (l_bfile));
    DBMS_LOB.fileclose (l_bfile);
    owa_util.mime_header ('application/vnd.ms-excel',TRUE);
    dbms_output.put_line('after owa_util' );
    owa_util.http_header_close;
    WPG_DOCLOAD.download_file (l_blob);
    end if;
    EXCEPTION
    WHEN utl_file.invalid_path THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.invalid_path');
    WHEN utl_file.invalid_mode THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.invalid_mode');
    WHEN utl_file.invalid_filehandle THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.invalid_filehandle');
    WHEN utl_file.invalid_operation THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.invalid_operation');
    WHEN utl_file.read_error THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.read_error');
    WHEN utl_file.write_error THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.write_error');
    WHEN utl_file.internal_error THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.internal_error');
    WHEN OTHERS THEN
    dbms_output.put_line('SQLERRM '||SQLERRM);
    END UTL_TEST_DOWNLOAD
    SQLERRM ORA-06502: PL/SQL: numeric or value error
    The file is getting created all the time i execute this procedure i am getting the above error while executing this statement owa_util.mime_header ('application/vnd.ms-excel',TRUE);

    Hi,
    it seems your issue is with PLSQL product so I would suggest to post your question in the PLSQL forum.
    reference
    PL/SQL
    REgards, Roberto

  • Download smartform on local machine

    Dear Experts,
              I want to download smartforms on local machine from a programme .means if i give smart form name in option it download a smartform on loacl machine.
    Thanks,
    jaten

    Jaten,
    use this Function module is FB_DOWNLOAD_FORM and FB_UPLOAD_FORM.
    check this link..
    http://www.erpjobs.co.uk/forum/showthread.php?t=63
    goto sm37 then run this fm give I_FORMNAME = your smartform name
    This will down load smartform in XML format.
    Use the Utilities--> Upload for upload the form .
    Please sure the upload file is in XML format.
    If you want only from program than just refer:
    http://sap4.com/wiki/index.php?title=ZSMART_FORM_UPLOAD_DOWNLOAD
    Amit.

  • Download Image from Local PC

    Hi,
    I have a jpg image which is stored in the local system(not on the server).I have written an application from which I am not able to download the image from the local system.
    I am using the following code but this code works only if the image is present on the server.
            String file = "C:\Folder_Name\image.jpg";
            final byte[] content = this.getByteArrayFromResourcePath(file);     
         final IWDCachedWebResource resource = WDWebResource.getWebResource(content, WDWebResourceType.UNKNOWN);
                    try
         final IWDWindow window = wdComponentAPI.getWindowManager().createExternalWindow(resource.getURL(), "WD_Filedownload", true);
         window.open();
         catch(Exception e)     {
         wdComponentAPI.getMessageManager().reportException(new WDNonFatalException(e), false);
             private byte[] getByteArrayFromResourcePath(String resourcePath)throws FileNotFoundException, IOException
               FileInputStream in = new FileInputStream(new File(resourcePath));
               ByteArrayOutputStream out = new ByteArrayOutputStream();
               int length;
               byte[] part = new byte[10 * 1024];
               while ((length = in.read(part)) != -1) {
                 out.write(part, 0, length);
               in.close();
               return out.toByteArray();
    And for downloading the file or image from local system I need to put the file in \src\mimes\Components folder; Where as I want the file to be downloadable anywhere from the local file system. Is that possible?
    Thanks
    Pravin

    Pravin,
    If you want to display an image existing elsewhere on the local machine, you need to upload it first (use FileUpload UI component), store it in a byte array and then continue with your code below of creating a cached web resource.
    And you place resources in src/mimes/component so that they will be available to the application (meaning for all users). This doesnt mean you are displaying the image from the local file system. When you deploy, these images go and live in the server and accessed from there.
    In any case, the hardcoded image location in your code is valid only for YOU but not necessarily other user running the same application.
    As such, you cannot access the client's file system explicitly (i.e local machine) due to security reasons. I know of no other way to do it with WebDynpro. Any resources must be present on the server side at some point of time. Either at application start or ask the user to provide it (like FileUpload).
    No web technology allows that other than signed applets or trusted activex controls, as far as i know.
    Hope that clears the confusion.
    Thanks,
    Rajit
    Message was edited by:
            Rajit Srinivas

  • Saving an xml file in local machine(urgent)

    Hi Techies,
    I am creating the xml file from jsp and generation of xml is working fine for me.
    Now the query is How can I point out the location of local machine??
    Here is my code
    String locationAndBackupFileName =request.getParameter("locationAndNameOfBackupFile");
                             System.out.println("Location"+locationAndBackupFileName);
    StringWriter  stringOut = new StringWriter();       
    XMLSerializer   serial = new XMLSerializer(stringOut, new OutputFormat("xml", "UTF-8", true));
    response.setContentType("application/xml");
    response.setHeader("Content-Disposition","attachement; filename="+locationAndBackupFileName);
    serial.setOutputCharStream(new FileWriter(locationAndBackupFileName));
    serial.serialize(document.getDocumentElement());when I xcute my code I am getting download dialog box, with save option.
    But after downloading no data is available.
    Can u guys help me to fix this problem
    regards,
    krish

    I don't know what you mean by "location of local machine". The response is being sent to a client machine (maybe that's your "local" machine). You have a lot of strange code that looks like it's serializing the XML to various places, but it should be serializing it to the response's output stream if you want it to go to the client.
    There is no way for you, on the server, to control where on the client machine the response data will be stored. That is entirely up to the user on the client. And you certainly can't write it to the client without the knowledge and consent of the client. That's just basic network security.

  • Use WZZIP in local machine urgent

    Hi
    We use forms 9.0.4, we try use WZZIP in local machine for send email with this zip file, we try use the webutil function, CLIENT_HOST, we put
    CLIENT_HOST('cmd /c cd C:\Archivos de programa\WinZip\WzZIP.EXE c:\TEMPORAL\MAC.ZIP c:\temp\texto1.txt');
    I don't know is possible to use setence or other similar.
    Thank

    Sorry, i write bad, the correct is
    We use forms 9.0.4, we try use WZZIP in local machine for send email with this zip file, we try use the webutil function, CLIENT_HOST, we put
    CLIENT_HOST('cmd /c C:\Archivos de programa\WinZip\WzZIP.EXE c:\TEMPORAL\MAC.ZIP c:\temp\texto1.txt');
    I don't know is possible to use setence or other similar.
    Thank

  • Need to ftp files(BACS) from Server to Users Local Machine-Urgent

    Hello,
    I am working on a Oracle HRMS Implementation(11i) and have a requirement wher I need to ftp files (BACS File) from a server to Users Local Machine.
    Please let me know any scripts or the way forward to achieve the same using a concurrent program.
    Thanks a lot!

    That requires the users machine for a ftp server installed and to be "visible" to the conc program server, the first one requiring setup and configure for every client and the second one may be a problem if in different segments or security policies. Another approach may be to generate the files on the server in a known location and from the client create a batch script to connect to that server and retrieve the file(s). You may schedule the program to run at certain hours or use a shortcut so the user can run it on demand

  • How to save image to local machine

    how to save my drawing (image or movieclips) to my local sytem without any server side script . i m using player 10. Please share some example

    I don't think that will bwe possible
    As that will be a hack in terms of an internet user.
    However usual solution to this is save your file at server and give user a bitton or some interface to download it

  • Allow a document to be viewed in the browser but not downloaded to the local machine

    I have SharePoint 2013 deployed and RMS integration enabled. and am willing to install Office Web Apps. I want to enable users to view documents in the browser only but not be able to download them to their desktops. This would mean there is no "save
    as" button in the browser-based viewer and no ability to download the documents to the desktop to be used with the desktop Office apps (word, Excel, etc.).
    I understand that I need RMS and Office Web Apps to do this. Could someone please confirm if I'm able to accomplish the goal above and, if so, how I do it?
    Thanks very much in advance for your help.

    When you enable OWA. you can read the file online and edit it
    The only way to allow users to read but not edit or print a file would be to implement Windows Rights Management.  You can read about that here:
    http://msdn.microsoft.com/en-us/library/ms458245.aspx
    It won't be doable with SharePoint permissions only as, even with read only, the documents is still downloaded to the client cache to read and as such can still be retrieved from there.
    You need to follow below steps for IRM 
    http://webcache.googleusercontent.com/search?q=cache:OZ-m0M4Z5J4J:msmvps.com/blogs/ivansanders/archive/2012/06/08/check-out-the-weather-forecast-for-teched-2012.aspx+&cd=8&hl=en&ct=clnk&gl=in
    http://webcache.googleusercontent.com/search?q=cache:4XRMy2NZG1MJ:sp-vinod.blogspot.com/2013/08/configuring-information-rights.html+&cd=4&hl=en&ct=clnk&gl=in
    If this helped you resolve your issue, please mark it Answered

  • Problem when downloading file to local using WPG_DOCLOAD.download_file

    Hi ,
    i am using database 11g and i am trying to write to file on database server using utl_file and download to the local machine by pl/sql procedure . i am directly executing this procedure in pl/sql . i am getting ORA-06502: PL/SQL: numeric or value error when executing owa_util.mime_header ('application/vnd.ms-excel',TRUE); statement in the procedure . not sure what is happening and i am new in using these features
    here is my code
    CREATE OR REPLACE PROCEDURE UTL_TEST_DOWNLOAD
    AS
    output_file utl_file.file_type;
    vexists BOOLEAN;
    vfile_length NUMBER;
    vblocksize NUMBER;
    l_blob BLOB;
    l_bfile BFILE;
    BEGIN
    output_file:=UTL_FILE.FOPEN('DATA_DIR', 'timesheet.csv', 'w');
    UTL_FILE.PUT_LINE(output_file,'COST_CENTRE'||
    'HISTORY_DATE'||
    'REF_NO'||
    'FIELD_NAME'||
    'VALUE'||
    'DATA_TYPE'||
    'CHANGE_DATE'||
    'INT_REF');
    UTL_FILE.fclose(output_file);
    UTL_FILE.FGETATTR('DATA_DIR','timesheet.csv',vexists,vfile_length,vblocksize);
    IF vexists THEN
    DBMS_LOB.createtemporary (l_blob, TRUE, DBMS_LOB.SESSION);
    l_bfile := BFILENAME ('DATA_DIR', 'timesheet.csv');
    DBMS_LOB.fileopen (l_bfile,dbms_lob.file_readonly);
    DBMS_LOB.loadfromfile (l_blob, l_bfile, DBMS_LOB.getlength (l_bfile));
    DBMS_LOB.fileclose (l_bfile);
    owa_util.mime_header ('application/vnd.ms-excel',TRUE);
    dbms_output.put_line('after owa_util' );
    owa_util.http_header_close;
    WPG_DOCLOAD.download_file (l_blob);
    end if;
    EXCEPTION
    WHEN utl_file.invalid_path THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.invalid_path');
    WHEN utl_file.invalid_mode THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.invalid_mode');
    WHEN utl_file.invalid_filehandle THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.invalid_filehandle');
    WHEN utl_file.invalid_operation THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.invalid_operation');
    WHEN utl_file.read_error THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.read_error');
    WHEN utl_file.write_error THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.write_error');
    WHEN utl_file.internal_error THEN
    RAISE_APPLICATION_ERROR(-20001, 'utl_file.internal_error');
    WHEN OTHERS THEN
    dbms_output.put_line('SQLERRM '||SQLERRM);
    END UTL_TEST_DOWNLOAD
    SQLERRM ORA-06502: PL/SQL: numeric or value error
    The file is getting created all the time i execute this procedure i am getting the above error while executing this statement owa_util.mime_header ('application/vnd.ms-excel',TRUE);
    Edited by: user5784286 on Jul 2, 2012 7:35 PM

    Hi,
    You need to call the procedure owa.init_cgi_env before you can use owa_util.mime_header from SQL*Plus.
    See [url http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:500221786045]here for details.
    Rod West

  • Sharepoint 2010 is automatically downloading Office2010 files to local machine's Recent Documents, instead of opening from library, off an emailed link.

    Hi-
    Please forgive me if this exact question has been asked already (if so I'm not finding it via Google or these forums), but one of my users can't seem to edit documents IN libraries, via links emailed to him.  He clicks on the link and the
    file auto-downloads with no Read-only/Edit option pop-up, and he can edit it (without getting the annoying yellow "this is read only from the server, click to edit document" bar up top either), but naturally his changes to these documents
    are only being saved on his local machine and not making it back to the library....  Our IT dept gave him a Save As workaround (that, it appears, would make a SECOND file in the library, which is not going to work for our processes), but nobody
    else is having this issue....  I'm thinking this is a simple settings change someplace in Sharepoint 2010 or Word 2010 (we have Windows 7), or maybe IE, or it's possible his User profile in our network needs some kind of adjustment...  anyway,
    any/all help appreciated.  Thanks.
    CF

    Hi,
    1. For automatically download the files, please check the office software settings. for word file, please open local word > file > options > save > save checked-out files to: > select "the office document cache"
    2. site actions > site settings > site administration > search and offline availablity to change the settings.
    3. Please compare the add-ons from this user's IE setting and the working fine IE setting.
    Regards,
    Seven 

  • Urgent - Things not working the same in server and local machine

    Hi,
    I have created an advanced table under advanced table as per the instructions in the dev guide. When the Add Row button is pressed in the parent table, I am inserting rows into the child VO and hence I should see rows in the child table in the UI. This is working fine in local machine. But when I deploy in the server it is not working. The child table is showing no search conducted. I have good OAF experience and have deployed things properly. But what could I be missing?

    Hi Sumit,
    "If the Child VO is not getting executed, please check the code which is responsible to execute the child VO. Do pay attention to exit clauses (like if conditions which skips a clause) and pay attention. "
    - If those things were a problem, it wouldn't have run in the local machine also right? Also, I ran diagnostics on the server and I can see the child VO is having the rows. It is something to do with the association of the child with the parent. But again: it's working fine on the local. That's what is bothering me and that's why I need some expert help. If you want, I can send you the page, controller and the AM ( 3 files)
    Of course redeploying the entire code, importing pages and bouncing is an option that could be explored.
    - Done that multiple times with a lot of care. Cleared Cache etc etc.

  • Download Image with DBMS_LOB

    I want to download the image file stored in database with the DBMS_LOB package within the forms 6i application. The DBMS_LOB.READ can do this but the buffer limit is 32kB! The image file I want to download is with size over 10MB, so that I need to write a loop to read but how can I save and append the buffer content into a file of the local machine during the loop. Please advise, thanks.
    SK

    I think you have to do it in chunks. and I think you have a function to do it.
    Maybe the database forum is better for this question.

  • Download image

    I upload an image on transaction SE78 for using with smartforms .
    Now ,at this moment i need to download it from sap machine to a local machine. We lost the image on the local machine

    Hi,
    One smart solution.
    May I know where is your image in SE78 or OAOR.
    Any way where ever it is you click on that OBJECT ID to view it.
    After you get the image in SAP system in keyboard press PRINT SCREEN then place in MS PAINTER.
    you can edit it in any way. again re-load.
    You can go through my idea.
    Here it is very easy and can be manageable in any way.
    Thanks.
    The same issue I faced long back.and i solved in this way.
    If you have any solution to download plsss place it in forum.
    If this helps you make sure to award points.
    Message was edited by: Deepak333 k

  • Downloading images from camera

    I have tried to download images direct from my camera but get the message no photographs. I then tried a card reader - no luck still the same message. I took the memory card to a local well known camera shop thinking that I had lost the images, they put the card into their machine and up popped the photographs. I have since tried inserting the card into another camera but that reads the same as my camera - no images. can anyone shed any light on this? why do the images show up at the camera shop and yet not be recognised by my laptop or camera. These are photographs of my holiday and I dearly want to see them.
    Would be grateful for any assistance

    I have tried to download images direct from my camera but get the message no photographs. I then tried a card reader - no luck still the same message. I took the memory card to a local well known camera shop thinking that I had lost the images, they put the card into their machine and up popped the photographs.
    Not sure what is going on but have the photo shop download them and put them on a CD so you know you have them
    I have since tried inserting the card into another camera but that reads the same as my camera - no images. can anyone shed any light on this? why do the images show up at the camera shop and yet not be recognised by my laptop or camera. These are photographs of my holiday and I dearly want to see them.
    Does your camera mount to the desktop?
    In the card reader does the card mount to the desktop? If so what do you see there using the finder?
    LN

Maybe you are looking for

  • Back to My Mac - can't figure out NAT stuff

    So I'm far from technical...I just can't figure out how to get Back To My Mac (BTMM) to work. I am setting this up from home now... I have walked through the BTMM manual: I start in AirPort Utility and select my Base Station. To be able to see the "I

  • Using Serializable interface

    Hi, I have to write a program that implements the Serializable interface along with a LinkedList. It looks like this: public class Library implements Serializable{    private LinkedList<LibraryBranch> collection; }However, all of my methods after tha

  • MSCS and Kernel patches: Can someone please refresh my memory?

    Greetings, We run 4.7 Ent on a 2-node MSCS Cluster (SQL). I need to do a kernel upgrade, but I have forgotten the precise distribution of kernel files outside of the "run" directory for the cluster. I understand they are: Main Kernel Files shared_dri

  • IPSec Certificate Authentication from Linux Strongswan client to Windows Advanced Firewall (2012)

    Hi, Has anybody had any success in getting a Linux Strongswan client (or Openswan) to connect to a win2012 Advanced Firewall using certificates and IPSec?  My Security Connection Rule requires authentication both inbound and outbound.  The cert is in

  • Why is the iphone 4s 199$  but in the UK £499?

    Why is the iPhone 4s 199$  but in the UK £499? They say nothing about contracts involved and in the news paper "I" it states that the iPhone 4s can be sold for as little as £99. How do you justify this? this was stated in the news paper dated weds 6t