How to write files to the filesystem with portal/plsql

Hi,
is there a way to write files to the filesystem via Portal?
Or can i call an external programm (perl, php) to do so, while portal writes further information to database?
thank you for the help
Ralf Schmitt

Hi Ralf,
my primary task is to publish download-links to files stored ... somewhere as a linklist. I tried to store and download files to/from the database but i cant get it to run. Upload works, download doesn't.
(i'm not talking about a single form-query-download-link! I need a report-like linklist)If you want to do this you'll have to write some code but sure it's possible - i did it myself.
The links in the link list in your report should call a stored function retrieving the files from Wwdoc_document or whatever is the document table defined in your DAD. Simply select BLOB_CONTENT into a BLOB variable from the table, provided you know what file to read :-) The function would then read the BLOBs and send them to the client's browser via DBMS_LOB - it's poor design but it works just as smooth as it could and it's really performing. This would simply display the file into your browser or prompt for file save location, depending on what browser you are using and its client settings.
I guess this is not so clear, if you want some more details feel free to e-mail me at [email protected]
Another way would be to use wpg_docload to both download and upload files to/from the DB.
Now i try to figure out if it is possible to store the files to the filesystem and write only additional info like description or path into db.Again, yes, it is. I can't recall exactly how I did it ^_^ but the trick is to create a virtual directory in the DB - pointing at a physical directory on the file system you want to write to, and you have to have full read-write permission on the directory itself, and its path must be included in the utl_file_dir database parameter. Then you use both COM Automation or UTL_FILE to write files.
would it be possible to let a portal-form write info to the db and then pass the file to a php-script?
regards,
Ralf Schmitt

Similar Messages

  • How to save files in the filesystem and remember their position?

    This is a fairly novice question. I'm writing a Java desktop application which executed from the jar (actually a jnlp) will first run a setup creating some files in a directory of user choice.
    When the application runs, it'll requires access to those files. However, if they were not saved in the user home directory, how could the application know where they are located? I hope the problem is clear enough. I cannot permanently save the user choice of location at setup time other than in the user home directory, but then I'd rather just save the files there. The problem is that in my case the user has no writing permissions to the user directory.

    simpatico_gabriele wrote:
    I'll need to look closer at your demo and the API. However from what you suggest it seems my application could still run in the sandbox (without being signed) and access the database without bothering the user (if he chooses always allow the first time). True?No. The PS can be accessed sand-boxed, so you can get the path to the DB in a sandboxed app., but the DB itself will require all-permissions to access. (Actually there are some pure Java DBs that can be launched from sand-boxed code, from classes on the run-time classpath, and so long as the app. does not need to change the data - that would be OK.)
    It is true that the JNLP API provides sand-boxed access to the local file system, but it does so through a FileContents object, a strictly limited type of File that is not usable in exchange for a method that accepts (for e.g.) a File or URL.
    If so, I still have a concern: the application also needs to store an image in a folder the user can reach. Writes to the image occur frequently. So using just the PersistService (as in ur demo) wouldn't do since it would be cached somewhere not chosen by the user (and hardly reachable anyway).
    I could use the ExtensionInstallerService to store along the db this image in the same path, and then write to it in the same way as I do with the db. However, will I need to offer a JFileChooser twice, once for each file,.. I don't understand why. The EIS determines the path for the DB using a JFileChooser, then stores it in the PS. The app. gets the path to the DB and image folder, from the PS.
    If they are to be stored in the same path, why is there a need to show 2 file choosers?

  • How to Load the cap file to the SSD with DAP

    Dear everybody,
    How to use upload, load and install command to load cap file to the SSD with DAP?
    My step:
    1 I have already input the DAP Key into the SSD.
    2 Select ISD
    3 Do auth
    4 Upload -s ssdaid -d "XXX.cap", but JCOP return 6985.
    I don't kown why.
    Thank you very much.
    Edited by: Ivy_D on May 20, 2009 12:16 AM

    (The JCOP3.1,1 Eclipse Plugin's emulator) install for load still complains 6985 after i did these belows step by step. I will appreciate yours helps very much!
    1: install a new security domain.
    cm> install -s -b -i A000000003535042 A0000000035350 A000000003535041
    => 80 E6 0C 00 20 07 A0 00 00 00 03 53 50 08 A0 00 .... ......SP...
    00 00 03 53 50 41 08 A0 00 00 00 03 53 50 41 01 ...SPA......SPA.
    C0 02 C9 00 00 00 ......
    (5227 usec)
    <= 90 00
    cm> /select A000000003535041
    => 00 A4 04 00 08 A0 00 00 00 03 53 50 41 00 ..........SPA.
    (2303 usec)
    <= 6F 10 84 08 A0 00 00 00 03 53 50 41 A5 04 9F 65 o........SPA...e
    01 FF 90 00 ....
    Status: No Error
    2.1 use the ISD key to build a security channle by ISD to personalize the new secuirty domain
    cm> set-key 255/1/DES-ECB/404142434445464748494a4b4c4d4e4f 255/2/DES-ECB/404142434445464748494a4b4c4d4e4f 255/3/DES-ECB/404142434445464748494a4b4c4d4e4f
    cm> auth
    => 80 50 00 00 08 40 74 01 18 F9 FA 68 07 00 [email protected]..
    (2274 usec)
    <= 00 00 57 F3 97 D9 7F 72 88 55 FF 02 00 02 81 8D ..W....r.U......
    91 65 B4 F2 A9 29 B2 C0 A4 AD FD C5 90 00 .e...)........
    Status: No Error
    => 84 82 00 00 10 DE 01 A2 F1 79 12 8F 2E 87 6F FE .........y....o.
    63 0E E4 5D 40 c..]@
    (1969 usec)
    cm> put-pub-key --tokenpin 123456 115 c:/gptest.p12
    => 80 D8 00 01 88 73 A1 80 EA 15 24 8C 5C 26 E1 31 .....s....$.\&.1
    02 FE B1 44 0E 37 4F D5 49 29 25 14 5C 7B E0 63 ...D.7O.I)%.\{.c
    87 0C E8 B8 03 FF AF 0B F2 2B 54 6A 16 4A D6 8F .........+Tj.J..+
    EE B6 E0 1A 29 F2 13 E8 2B 04 FC 5F 2F D2 51 ED    ....)....._/.Q._
    _18 40 D3 E1 AF 36 CA A2 58 45 AC 38 3D 5F D4 56 [email protected]=_.V
    56 D8 87 5D 45 86 B9 36 F0 07 88 AD 59 78 A1 03 V..]E..6....Yx..
    2D F4 DE E9 51 E3 75 65 E3 2B B7 49 11 A5 E3 75 -...Q.ue.+.I...u
    39 25 1C 44 FB D5 3C 57 40 DD 64 22 D0 0A 8E 88 9%.D..<[email protected]"....
    2C 52 7B E2 67 A4 0B 65 A0 03 01 00 01 00 ,R{.g..e......
    (2614 usec)
    <= 73 90 00
    cm> card-info
    => 80 F2 80 00 02 4F 00 00 .....O..
    (1488 usec)
    <= 08 A0 00 00 00 03 00 00 00 01 9E 90 00 .............
    Status: No Error
    => 80 F2 40 00 02 4F 00 00 [email protected]..
    (2125 usec)
    <= 08 A0 00 00 00 03 53 50 42 0F C0 90 00 ......SPB....
    Status: No Error
    => 80 F2 10 00 02 4F 00 00 .....O..
    (1794 usec)
    <= 07 A0 00 00 00 03 53 50 01 00 01 08 A0 00 00 00 ......SP........
    03 53 50 41 90 00 .SPA..
    Status: No Error
    Card Manager AID : A000000003000000
    Card Manager state : OP_READY
    Sec. Domain:{color:#ff0000}PERSONALIZED (SV------) A000000003535042{color}
    Load File : LOADED (--------) A0000000035350 (Security Domain)
    Module : A000000003535041
    cm> /cap-sign --tokenpin 123456 a.cap A000000003535042 c:/gptest.p12
    cm> /cap-info a.cap
    SHA (Load File data): {color:#ff0000}1BD8F3CCC0042A5EEF9845FA3C667834051F4FAD{color} -- Load File Data Block Hash
    SHA (Load File dbg) : A36B4AED89FF8C4B8D8BBDDEB40757E36477143F
    SHA (Load File) : 0D4AD84E20D00C26ABA1BF5677636414234F5743
    DAP block(s) :
    DAP block : 1
    AID : A000000003535042
    Signature : 19F414292C00F9B7C89E7341A13AF15B
    CCF90D17A112418EAF556B5172EBE39C
    E05DF0CDDD68EFD2559CC7EC591878DF
    14B5C0FBC5C6CF6A0DC6E50B4AC99216
    7D6C46DC4098E0A1AC11DB69596E4A71
    F34CBFBD7DFABA88C6E8C2348FF8A9FC
    A8E22074B4D1B9D2AB5993A539BE8E1F
    6187252B9912909AE1DA4E5FAE866960
    Algorithm : VOP 2.0.1'
    Signed by : c=CN, st=beijing, l=beijing, o=logis, ou=logiscn, cn=gptest
    Load Token(s) : none
    Install Token(s) : none
    then send install for load
    cm> send 80E602002908{color:#ff0000}72666370626F6332{color}08{color:#ff0000}A000000003535042{color}14{color:#ff0000}1BD8F3CCC0042A5EEF9845FA3C667834051F4FAD{color}000000
    => 80 E6 02 00 29 08 72 66 63 70 62 6F 63 32 08 A0
    00 00 00 03 53 50 42 14 1B D8 F3 CC C0 04 2A 5E
    EF 98 45 FA 3C 66 78 34 05 1F 4F AD 00 00 00
    (3108 usec)
    <= 69 85 i.
    Status: Conditions of use not satisfied

  • I have just owned a macbook pro and trying to learn things since i have all along used windows laptop. My first question is : when there are two files i am working together, one above the other on screen, how you switch over between the two with key ?

    I have just owned a macbook pro and trying to learn things since i have all along used windows laptop. My first question is : when there are two files i am working together, one above the other on screen, how you switch over between the two with key ?

    Hi...
    Mac OS X keyboard shortcuts
    Control-F4
    Move focus to the active (or next) window
    Shift-Control-F4
    Move focus to the previously active window
    By the way...  since you are new to Mac, click a clear space on your Desktop. You should see "Finder" top left corner of the screen in the menu bar.
    Click Help then click Help Center
    As an example type in    keyboard shortcuts
    You can use the Help menu for almost any application on your Mac.
    Apple - Find Out How - Mac Basics
    For held switching from PC to Mac >  Apple - Support - Switch 101

  • Delete file from the filesystem?

    Hello,
    I have an easy question. But I don´t find the right oracle packages.
    I want to delete a file from the filesystem. How can I do this?
    Thanks for your help!

    Paul,
    If connecting to the Web server on East-Coast USA is not optimal for you, or if you aren't using Oracle 10g Release 2, try this URL instead:
    http://www.oracle.com/technology/documentation/index.html
    You need to look for the PL/SQL Packages and Types Reference document, the section detailing the UTL_FILE package.
    Good Luck,
    Avi.
    Message was edited by:
    Avi Abrami

  • Deleting files from the filesystem

    How can you delete a file from the filesystem in Java? Is it possible?
    Thanks

    File file = new File("c:\\test\\abc.txt");
    file.delete();

  • How to write file at server end?

    Hi,
    I use a af:inputFile component to receive uploaded files. And want to write files to the directory of server. However, when execute java.io.File.createNewFile(), it throw exception. How to resolve it?
    import org.apache.myfaces.trinidad.model.UploadedFile;
    import javax.faces.event.ValueChangeEvent;
    import java.io.InputStream;
    import java.io.File;
    public class UploadFileHandler {
        public void doUpload(ValueChangeEvent event) throws IOException {
            File file = new File("C:\temp.txt");
            *file.createNewFile();* //Error happen here.
    }

    Hi Cheney,
    It is good practice to use System.getProperty("file.separator") instead of hardcoding "/" or "\" .
    Though your issue is resolved by using "//", you might want to consider changing to the above.
    -Arun

  • How to write file to server side?

    hello,
    Could anyone pls help me...
    I just want to see an example how can I write to a file that is placed at the server(save place as the applet).
    p.s. I have been successfully read a file from there...
    Suppose I have signed the applet (self-signed), anymore security problem I need to pay attention to?
    Thanks a lot!!

    hi mandy, from the applet u can send the file to be written into the server to a servlet running in server and the servlet can in turn write the file into the servlet. by applet - servlet communication, u can easily read and write files to the server.

  • How to attach files in the SMTP mail?

    Hi All
    Anyone know how to how to attach files into the mail configured
    with SMTP while changing the workstatus. The SMTP mail is working
    fine, but my requirement is to attach a file which is having static information
    like instructions for users or something like that.
    Please help me on this..
    My Version of BPC is MS 7.X
    Regards,
    Baijuchandran.B

    Have you seen this thread? Not an elegant solution, but it appears to work for some bizarre reason.
    https://community.bt.com/t5/Email/Email-won-t-accept-attachments-error-18-temporary-It-isn-t/td-p/14...

  • How to attach files to the thread we post in this forum?

    How to attach files to the thread we post in this forum?
    I’m wondering why there is no feature that allows attaching files from our hard drives! It is not practical to upload our file first in a certain web to provide it as a link in the post.
    Is there a way to attach our files directly from our hard drive to the post?
    Please, have a look on the screenshot below that shows a forum which includes all the very basic features!
    Thank you for the help
    Best
    Jamal

    Pierre,
    Just a guess on my part, but I would suspect non-image files in this case.
    As Ted points out, that WAS possible early on, and then the capbility to attach non-image files, was actually retained by a certain few forums, though not for long. This change was coincidental with a major spam attack, and at least one disgruntled user attempting to attach some rather nasty "stuff." I do ot know if those events prompted the change, as I was not part of the decision making group, that initiated the change.
    Though 95% of the files that I wish to attach, ARE image files, there are times, where a TXT file would be ideal, say for a crash log, or similar. Now, I can convert that TXT to a PNG, but then one has to work with pixel x pixel dimensions, and some files, like those crash logs, can be rather long.
    Personally, I find the loss of the Attach File (was via a button at the bottom-left of the editing screen) to be a sad comment on the actions of some, on these forums, but then that just reflects life outside of the forums.
    Hunt
    PS - I am glad that you found that little article useful Especially in the PS, PrPro, PrE and Encore forums, screen-caps can tell so very much about what is going on with a person's program, system or their Projects/Images.

  • Upload an excel file in the server  with a background job

    I am trying to upload an excel file in the server, but i only can upload flat files, i can upload files in local with the function ALSM_EXCEL_TO_INTERNAL_TABLE, can i use this function reading an excel file in the server, or is there another possibility of uploadinging an excel file in the server  with a background job ?
    thanks in advance

    Hi
    First read the file from the server to some temporary place at presentation layer and then open it. And if required, save it to the server afterwards. To read/write files to application server you can use:
    1. Statements "OPEN DATASET/CLOSE DATASET".
    2. There are some FMs for server file operations, like "C13Z_FILE_UPLOAD_BINARY" and "C13Z_FILE_DOWNLOAD_BINARY".
    *--Serdar

  • Preview pdf files in the desktop with Adobe Reader Touch .. is it possible?

    preview pdf files in the desktop with Adobe Reader Touch
    .. is it possible?

    Windows Store apps (including Adobe Reader Touch) do not offer the preview capability in the desktop environment.  That's just how Microsoft has set up.  So you need traditional desktop apps.
    Because your operating system is Windows 8 (not Windows RT), you can find a lot of desktop apps that are compatible with Windows 7 and 8.  (For Windows RT, only built-in Microsoft Office products are available for desktop apps.  But that's not the case here.)
    You can download Adobe Reader XI (which is also a free PDF viewer) from the following Adobe Reader download page
    http://get.adobe.com/reader/enterprise/
    and install it on your Windows 8 desktop.  (Note for Windows RT users: Adobe Reader XI is not compatible with Windows RT.)
    In case you have any questions about Adobe Reader XI (desktop app), you can visit the Adobe Reader forum.
    http://forums.adobe.com/community/adobe_reader_forums

  • How do I connect to the internet with my new IPAD ?

    How do I connect to the internet with myt new Ipad

    See here for connecting to the Internet:
    http://support.apple.com/kb/HT1695
    If you have any problems there is troubleshooting advice here: http://www.apple.com/support/ipad/wifi/

  • How do i connect to the internet with my ipad?

    how do i connect to the internet with my ipad?

    Did you turn WiFi on in the Settings App? If WiFi is turned on, your iPad should be able to see any WiFi networks that you can connect to and you should be able to tap on one of those, enter a password if needed and then tap the join button.
    I get the feeling that you know this and the problem needs further explanation so ... Can you explain in more detail?

  • How do i connect to the internet with apple tv

    how do i connect to the internet with apple tv

    Ethernet cable from your router, or configure wifi in Settings.

Maybe you are looking for

  • Can I get rid of the"allow"feature when I change sites?

    whenever I change websites a bar shows up and wants me to click on the word "allow". Can I get rid of this feature.

  • How to stop auto delete of "0"

    Hi, I am pulling in values from an xml and displaying them in a text field. The issue I am having is that if the value ends with a 0 Flex is automatically dropping it. So if I have this element in the xml; <myXMLvalue>5.30</myXMLvalue> It displays as

  • Hooked up hdmi to hdtv and get only audio and a "profiler" screen view; cannot play dvd on HDTV

    Hooked up mini display port / HDMI to my TV and only get audio of DVD.  Do see original apple desktop image and image of selected  "window" display. cannot manipulate "window" menu. How do I get video and audion from DVD?

  • Data Wrap and data Format in OBIEE Reports

    Hi When we select few columns , the data is getting wrapped. To avoid this we had chosen "Plain Text (Without broken spaces)" available in the data format tab and it resulted in unwrapped data.But we are unable to get the same format as that of datab

  • Re: using UltraGuest in iWeb

    Apologies, I realise that this subject must have been covered before, but as a newbie to web creation, I'm afraid I've not been able to understand the mechanics of introducing a guestbook into my website. I have registered with UltraGuest on a member