Rename  upload .pdf

Solve ....
SOURCE CODE:
DECLARE
FILE_NAME VARCHAR2(900);
DIR varchar2(100);
DIR1 varchar2(100);
i integer;
BEGIN
file_name := Win_API_Dialog.Open_File('Select File to Copy From','D:\','pdf(*.pdf)|*.pdf|',TRUE,WIN_API.OFN_FLAG_DEFAULT,FALSE);
if file_name is not null then
i := instr(file_name,'\', -1,1);
if i <> 0 then
DIR := 'C:\PDF\'||substr(file_name,i+1);
DIR1 := 'C:\PDF\1234.PDF';
MESSAGE(DIR);PAUSE;
Win_Api_Utility.Copy_File(file_name,DIR,true,false);
Win_Api_Utility.Move_File(DIR, DIR1, TRUE);
message('UPLOAD Success');
else
message('UPLOAD REEOR');
raise form_trigger_failure;
end if;
end if;
end;
Edited by: 928060 on 2012/8/5 下午 6:41

I usually make make use of the command prompt to copy
one file from place to place...
U can use the other maethod too. It really depends on
how much you are trying to make use of the OS features
instead of the file handling in java!The point surely in Java is to make use of Javas platform independance rather than to make your code platform specific. By using File.renameTo(File) your are passing control to the FileSystem class anyway which is implemented as part of your JRE and will be optimised to use your local filesystem correctly. By monitoring with FileMon from http://www.sysinternals.com you can see that the operation is quite efficient as it is...

Similar Messages

  • Renaming a PDF file.

    In Adobe Reader X...when I rename a pdf file that is on my desktop, and upload it to a report it appears on the report with the previous name.  I want it to appear as I have renamed it.  Please help!

    Yes thank you......It is a real estate 4 page document that I need and have uploaded into my real estate listing, and that I have scanned from the file option to save on my desktop in pdf file. I then rename it by removing the last 5 zeros and pdf from the name I have previously  chosen in the printer Control Center 3. When I rename the file on my desk top it looks OK,  Then I go into the MLS real estate website and upload it after I locate it on my desktop.  It uploads fine and shows the filename at the left of the doc which is OK except the 5 zeros and pdf are there again.   I named the file ...12 Gardenville-pcd pdf.  and want it to appear that way after uploading, but it apears as 12 Gardenville-pcd pdf 00000 pdf. the way it came from the printer to desktop and before I renamed it.
    Sorry I couldn't reply sooner  Also yesterday a gentleman from Adobe Paid tech support (though I didn't have to pay) was able to take care of this problem, and I was able to successfully upload  a renamed doc, but when after I tried  to accomplish it on my own I was not able to succeed in doing so.
    Thanks,
    Joebif.

  • Upload PDF directly to printer via Citrix from off-site computers

    Is it possible to upload PDF documents directly to the newer HP printers, especially the business printers and copiers (MFDs)?  We have HIPAA-containing data that home-based users must print at work, and therefore cannot be sent via the cloud.
    Our current printer vendor supports uploading PDFs directly, which our users are using.  The workflow involves printing via PDFCreator, then opening the web interface print tab of the device they are printing to and uploading, via a browse button, the PDF document.  The connection is handled through our Citrix remote access servers, everything is encrypted, and all data stays out of the cloud.
    Because HP's ePrint is in the cloud, we cannot submit HIPAA-containing data via that route.
    If no current HP products have that capability, can it be added?  I would think a firmware update to have an upload option would be very doable.  It appears that the ability to print PDFs is already present via ePrint--this would only be another way to submit a print job.
    Our current printer vendor's device functionality includes being able to upload and print other print-ready formats, including .PCL and .PS files, but we aren't using that capability currently.  It would be nice to be able to upload .DOC/.DOCX formats directly.

    Hey SPS64,
    Thank you for participating in the HP Consumer Support Forums!  The steps you desire are not going to be found on Consumer grade printers, but may be able to be found on some of the Enterprise level printers from HP.  I would advise posting this question on the Enterprise printing boards where there are many experts who would be willing to assist with your question.
    http://h30499.www3.hp.com/t5/Printing-and-Digital-Imaging/ct-p/bsc-412
    Best of luck,
    Jason
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------
    I am not an HP employee.

  • Upload PDF file from SAP Portal and save in SAP

    A file in PDF format needs to be uploaded from SAP Portal and the file is to be saved in SAP. Request for help, how to do the same. What are the FM to be used etc..
    Thanks,

    hi
    Use FM  GUI_UPLOAD with file type as BIN
    there are similar threads...pls refer to them for more details:
    https://www.sdn.sap.com/irj/sdn/profile?userid=3166533
    Upload pdf file to SAP
    PDF File
    reward if helpful
    regards,
    madhu

  • I have a problem with uploading pdf files. This was raised in April by Mariano and the solution given - but the link to the solution does not work. How do I get to the solution?

    I have just come across this problem uploading pdf files on FF 3.6. Mariano posted this same problem on 5 Apr ( I found his post after a Google search as a search of this Forum gave no result). It is shown as "solved" but when I click on the Show Solution link it just loops back to the question.
    How do I get to see the solution?

    The following line tells me that this is not a template file, but a document created from a template called index.dwt
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/index.dwt" codeOutsideHTMLIsLocked="false" -->
    This means that you saved a child document as a template file at some stage.
    If you go to Modify->Templates->Detach from Template, you can remove the template structure from your document. All you then need to do is to re-save the document as a template.

  • How to upload pdf file in a canvas in flex web application?

    how to upload pdf file in a canvas in flex web application?

    Hey saif.antri,
    You can view PDFs and more using iBooks on your iPhone:
    iBooks: Viewing, syncing, saving, and printing PDFs on iPhone, iPad, and iPod touch
    http://support.apple.com/kb/HT4227
    Have a great day,
    Delgadoh

  • How to batch upload PDF files into database BLOB

    Hello.
    I have a requirement to batch upload PDF files into BLOB column of an Oracle 8.1.7 table from Forms 6i Web. The content of the blob column (ie. the PDF content) MUST be displayable from all client software (eg. Oracle Web forms, HTML forms, etc.)
    Our environment is
    Middle-tier is 9iAS on Windows/2000
    Database is Oracle 8.1.7.0.0 on VMS
    Oracle Web Forms 6i Patch 10
    Basically my Oracle web form program will display a list of PDF files to upload and then the user can click on the &lt;Upload&gt; button to do the batch upload. I have experimented the following approaches but with no luck.
    1. READ_IMAGE_FILE forms built-in = does NOT work because it cannot read PDF file. I got error FRM-47100: Cannot read image file
    2. OCX and OLE form item = cannot use this because it does NOT work on the Web. I got error FRM-41344 OLE object not defined
    3. I cannot use DBMS_LOB to do the load because the PDF files are not in the database machine.
    4. Metalink Note 1682771.1 (How to upload binary documents back to database blob column from forms). When I used this, I got ORA-6502 during the hextoraw conversion. In using this solution, I have downloaded a bin2hex.exe from the Google site. I've noticed that when I looked at the converted HEX file, each line has the character : (colon) at the beginning of each line. I know the PDF file has been converted correctly to HEX format because when I convert the HEX file back to BIN format using hex2bin.exe, I'm able to display the converted bin file in Acrobat Reader. When I removed the : (colon) in the HEX file, I did NOT get the ORA-6502 error but I CANNOT display the file in Acrobat Reader. It gives an error "corrupted file".
    5. upload facility in PL/SQL Web toolkit - I tried to automatically submit the html form (with htp.p) but it does NOT load the contents of the file. I called the URL from Oracle forms using web.show_document. There seems to be issues with Oracle Web forms (JInitiator) and HTML (+ htp.p).
    The other options I can think of at this point are:
    1. Use SQL*Loader to do the batch upload via SQL*Net connection and use HOST() built-in from Oracle Webforms to execute SQL*Loader from the 9iAS.
    2. Write a Visual Basic program that reads a binary file and output the contents of the file into a byte array. Then build a DLL that can be called from Oracle webforms 6i via ORA_FFI. I don't prefer this because it means the solution will only work for Windows.
    3. Write a JSP program that streams the PDF file and insert the contents of the PDF file into blob column via JDBC. Call JSP from forms using web.show_document. With this I have to do another connection to the database when I load the file.
    4. Maybe I can use dbms_lob by using network file system (NFS) between the application server and VMS. But this will be network resource hungry as far as I know because the network connection has to be kept open.
    Please advise. Thank you.
    Regards,
    Armando

    I have downloaded a bin2hex.exe from the Google site.
    ... each line has the character : (colon) at the
    beginning of each line. I'm afraid it isn't a correct utility. I hope you'll find the source code of a correct one at metalink forum:
    Doc ID: 368771.996
    Type: Forum
    Subject: Uploading Binary Files: bin2hex and hex2bin do not reproduce the same file
    There is some links to metalink notes and some example about working with BLOB at http://www.tigralen.spb.ru/oracle/blob/index.htm. Maybe it helps. Sorry for my English. If there is any problem with code provided there, let me know by e-mail.

  • How to upload PDF files to a website? Always error messages

    I made a script for friends to upload PDF files to a website we have.
    The script is: <form action ="<?php print $_SERVER['PHP_SELF']?>" method="post" enctype="multipart/form-data">
    This doesn't work in Firefox; it does in other browsers, even IE.
    What do I do wrong?

    Hi Ajay,
    Using FILE_UPLOAD UI element you can upload files..
    Please check this..
    http://help.sap.com/saphelp_ERP2005/helpdata/en/b3/be7941601b1d09e10000000a155106/content.htm
    http://wiki.sdn.sap.com/wiki/display/WDABAP/ExcelFileUploadAndDisplayDataUsingWebDynPro+ABAP
    Upload PDF file to Webdynpro
    Cheers,
    Kris.

  • How to upload pdf files to icloud using a pc

    While using MobileMe and Idisk on my pc was extremely easy, turning to iCloud seems to be more cahotic. i.e. I cannot upload PDF file from my pc to iCloud. Any suggestion?
    Thanks 

    Hi Ajay,
    Using FILE_UPLOAD UI element you can upload files..
    Please check this..
    http://help.sap.com/saphelp_ERP2005/helpdata/en/b3/be7941601b1d09e10000000a155106/content.htm
    http://wiki.sdn.sap.com/wiki/display/WDABAP/ExcelFileUploadAndDisplayDataUsingWebDynPro+ABAP
    Upload PDF file to Webdynpro
    Cheers,
    Kris.

  • Mountain lion upload pdf

    I can't upload pdf's after I installed mountain lion.  It really messed me up.  All three of my macs.  I have to upload into the court system daily.  Help!!!

    All pdf's are a lighter shade so I can't click on them to upload into www.ecf.cacb.uscourts.gov.  It worked before the mountain lion upgrade.  Previously it didn't work on google chrome before the upgrade either.  I tried the privacy settings... and have been searching all day on the internet for an answer

  • Upload PDF to DMS using FTP server in WD abap

    Hi Friends,
        I want to upload PDF file from presentation server to DMS. As I dont want application server in this regards , so am using FTP server instead. But the problem am facing is in WD abap the filepath is in  XSTRING format. So how to upload Xstring pdf file in FTP server and how can i pull the same data to DMS server.
        My problem is just how to upload PDF in FTP server using web dynpro abap. The FM 'BAPI_DOCUMENT_CREATE2'  will upload the same PDF file from FTP to DMS server.
    Regards,
    Santosh

    Hi Santosh,
    Are you using FILE UPLOAD UI Element or not?
    Please go through this.. it might helps
    Re: File Upload Using BAPI
    /people/shruti.rathour/blog/2008/02/07/uploading-sap-interactive-form-on-the-abap-webdynpro-view
    Re: FTP_CONNECT failed for SAPFTP from WD4A to external Server
    Cheers,
    Kris.
    Edited by: kissnas on May 3, 2011 7:15 AM

  • Uploading PDF in to BLOB and Retrieve PDF from BLOB

    hi
    I have recently started working in apex and run into a bump while trying to handle PDF file Attachments and BLOBs.
    I am trying to upload a PDF file into BLOB database Column using APEX, and later view this file from DB.
    I require assistance on how to upload PDF file into BLOB, and how i can later view this inside the browser window, using APEX
    thanks

    Maybe this blog post can help you.
    Regards,
    Sergio

  • How to upload pdf file from windows cell phone?

    How to upload pdf file from windows cell phone?

    You can do this in steps.. First use the built in method for uploading a file into the flows files object, Next you would copy the file out to an Oracle built directory on your UNIX box using utl_file.put_raw..
    Here is a link to show you how to upload files in an APEX application [http://download.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/up_dn_files.htm]
    And here is a link to show you how to use utl_file.put_raw.. [http://psoug.org/reference/utl_file.html], item is towards the bottom of the screen..
    Thank you,
    Tony Miller
    Webster, TX

  • How to upload pdf file format in unix file directory?

    how to upload pdf file format in unix file directory?

    Hi Karthikeyan,
    If you have PDF internal table with you, You can follow the below method to upload into Unix directory.
        DATA:file_path TYPE char100 VALUE '/usr/sap/tmp/rep_out.PDF'.
        OPEN DATASET file_path FOR OUTPUT IN BINARY MODE.
        IF sy-subrc EQ 0.
          LOOP AT it_pdf.
            TRANSFER it_pdf TO file_path.
          ENDLOOP.
        ENDIF.
        CLOSE DATASET file_path.
    Thanks
    Venkat.O

  • How to determine the data content of the uploaded PDF from local

    Hi,
    I have a requirement wherein I will create a new program to upload PDF(contains contract information) from my local directory. Then base on the data in the PDF, I need to perform some contract validtion with SAP. The problem is, I do not know how to extract the data in the PDF. How to do so?
    Thanks for your inputs.
    Regards,
    Marc

    Hello Marc,
    As we know in conventional ABAP when PDF file is read, SAP converts into binary format which is not directly readable. There are various applications which converts PDF to Text files, using these tools PDF file can be converted, uploaded and read the data.
    SAP Portal technology gives reading PDF files option.
    http://help.sap.com/saphelp_nwce711/helpdata/en/dc/f1783fe3263042e10000000a114084/content.htm
    Pls  have a look at page 11
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9913a954-0d01-0010-8391-8a3076440b6e
    Regards,
    Nishikant.

Maybe you are looking for

  • Project Server 2010 - Error 20010 with a master project and 3 sub-projects during publication

    Hi, Here is the situation : One master project with three sub projects. Sub projects are really similar (Same ressources and nearly same tasks but only the first contain real work for now). Sub projects got no sub projects nor links between projects.

  • Sales proforma invoice - f.o.c.

    Hello, I have the following issue. For customs purposes our sales company has to create a proforma invoice with reference to the delivery. If the order (TA) was for free (itm.cat. TANN) because of warranty, they have to print a proforma as well with

  • Unable to connect to the proxy server

    unable to connect to the proxy server

  • Error Updating Printer

    HP Photosmart C510 eStation almost completed an update then says Error Updating Printer, 4 times of retry. HELP!  Printer IS plugged in but is connected to computer wirelessly with NETGEAR router. I do have Windows Vista. Has been working ok, just wo

  • Changing from LWAPP to autonomous

    I have a 1130AG access point in LWAPP mode with no controller. How can change it to an autonomous mode if I dont have access to a wireless controller.