Image: display from local drive, upload to server file system, and display from server

Hello,
I am using jdev 11.1.2.4.0...
The requirement is that users would like to upload images from their local drive to server drive and they would like display images from server drive later.
We don't want to keep images in database. I am not sure what the solution should be; however, I plan to ....
1. create a table to keep an information of images -- image_id, image_location (server drive), image_filename
2. create a page where users can enter image information and specific filename from a local drive (I think I will use inputFile component) and provide the preview button to display an image on screen before save it. To save data is to save information to the database and copy an image file to the server drive (the destination location for image files is predefined.)
3. create another page where users can browse information from the database and display an image for a selected record by getting from the server.
I need suggestions on...
1. how to display an image on page from the local drive?
2. how to copy a file from a local drive to a server?
3. how to display an image on page from the server drive?
Thank you.
nat

See:
http://tompeez.wordpress.com/2011/11/26/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-1/
http://tompeez.wordpress.com/2011/11/26/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-2/
http://tompeez.wordpress.com/2011/12/16/jdev11-1-2-1-0-handling-imagesfiles-in-adf-part-3/
Where Timo saves images to the database, you save it to the file system (examples on how to do this from Java are available plenty if you just Google for it). Similar to Timo you then use the image tag to display images. The difference is that you can directly add the URL from the database table.
The benefit of using a database to host images is that you are not dependent on file server structures though
Frank

Similar Messages

  • Using an External Drive with a ReiserFS File System

    I hope this is the most appropriate place to ask this question.
    I am looking at adding a SimpleShare NAS device (Made by SimpleTech) to my home network. I am told that the hard drive uses the ReiserFS file system (which is a Linux file system). Two questions?
    Does anyone have any experience with the ReiserFS file system? Does it play well with OS X?
    Anyone familiar with the SimpleShare units? Any feedback good or bad?
    Thanks for any suggestions.
    David

    After doing some research I determined that ReiserFS is a journaled Linux file system and having started to use it, it is working well on the network.

  • Could not restore from the system image in ext. hard drive for Windows Server 2008 R2.

    Hi,
    Its been since 2 weeks I am struck with this issue. Any help is appreciated. I want to restore my server (Windows 2008 R2) to the system image I have in my external hard disk. The problem is my image is not getting recognized by the server when I chose the
    system repair option while booting with the OS cd.
    I placed the files in the folder called WindowsImageBackup in the root folder of the hard disk. The WindowsImageBackup folder has the folder structure like this: WindowsImageBackup\my_pc_name\Backup 2014-03-09 084946\xxxxx.vhd files
    I have put the MediaId file inside the "\Backup...." folder. Is it okay? And the MediaId file which I have has .file extension not .bin extension. Is there anything wrong with it?
    By the way I tried using the hard disk with USB 2.0 as well as 3.0 . It did not work for both.
    What should I do to make my system image recognized?
    Thanks in advance!

    Hi,
    The trick to restoring system from backup disk is to place the WindowsImageBackup folder at
    the root.  This will allow the recovery utility to automatically find the folder. (E.g. E:\WindowsImageBackup)
    Also check with load drivers option in restoration wizard or change boot order in bios to detect usb first then physical drive.
    Hope this help you.

  • BIP and Siebel server - file system and load balancing question

    1. I just need to understand whenever the reports are generated through BIP, are there reports stored on some local directory (say Reports) on the BIP server or Siebel File system? If on a File system how will archiving policy be implemented.
    2. When we talk of load balancing BIP Server. Can the common load balancer be used for BIP and Siebel servers?
    http://myforums.oracle.com/jive3/thread.jspa?threadID=335601

    Hi Sravanthi,
    Please check the below for finding ITS and WAS parameters from backend :
    For ITS - Go to SE37 >> Utilities >> Setting >> Click on ICON Right Top Corner in popup window >> Select Internet Transaction Server >> you will find the Standard Path and HTTP URL.
    For WAS - Go to SE37 >> Run FM - RSBB_URL_PREFIX_GET >> Execute it >> you will find PRefix and PAth paramter for WAS.
    Please refer to this may help step-by-step : How-to create a portal system for using it in Visual Composer
    Hope it helps
    Regards
    Arun

  • Office, PDF and CAD files upload into the dms system and viewing them .....

    i have uploaded a excel file into the dms server
    i dont want others to save the doc , while viewing in the sap viewer.( made necessary setting)
    any setting required for me to do this???
    i am able to view the office files in sap viewer, can i have the same option for PDF also??? and the same to CAD files also?
    Regards
    surya

    Dear Surya,
    of course you can have the same behavior for PDF and CAD files. You just have to create a new workstation application for these filetypes in transaction DC30 and maintain the correct parameter so that these files are also viewed by the integrated ECL Viewer.
    For further information please see the following link:
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/plm/2.Customizing%2528CA-DMS-EAI%2529
    Best regards,
    Christoph

  • Can you upload to a file system directly and not to wwv_flow_file_objects$

    The following link shows how to upload a file. These files that are uploaded are stored in a table called wwv_flow_file_objects$ .
    However what if I want to upload a file but save it to the file system (share) and not put it into wwv_flow_file_objects$ is that possible
    http://download.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/up_dn_files.htm#CJAHDJDA
    When you use the file upload item type, the files you upload are stored in a table called wwv_flow_file_objects$

    It has to be loaded to wwv_flow_file_objects$, but you can use the
    UTL_FILE package to write it to a directory the database has access to. Use FOPEN with open_mode wb and use the PUT_RAW procedure to write into the file. Use READ procedure of the DBMS_LOB package to read your BLOB in junks.
    UTL_FILE: http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_file.htm#i1003526
    DBMS_LOB: http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_lob.htm#i999170
    I think that should work.
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • How are files uploaded to the file system?

    How are files uploaded to the system? I do not see any documentation on the SAP Cloud Appliance Library regarding this.

    Hi Daniel,
    the majority of the appliances run the Linux operating system. You can use native scp (Linux) or winscp (Windows) to upload files to the file system.
    If you google for "upload data to Linux aws instance" you should find a lot of documentation on the topic.
    Best Regards,
      Hannes

  • How to load images from file system and save in database

    Hello Fellows!
    I have a problem and try to explain:
    Plateform:
    Operating System: Windows 98, Form 6i and Oracle 8
    Table in the database
    Table:Emp_pic with columns i.e. (empno and pic type long raw)
    In forms, I have a data block which contain the columns of the emp_pic table and a control block which have a push button contains the trigger as follow, also attach PL/SQL library i.e. D2kWUTIL.PLL
    When-Button-Pressed (Trigger)
    Declare
    temp varchar2(400);
    Begin
    temp := win_api_dialog.open_file('Open File','d:\pic','*.tif',true,win_api.ofn_flag_default,false);
    read_image_file(temp,'tif','emp_pic.pic');
    end;
    The problem when I pressed the button it does not display open dialog box what is the wrong with the code or else.
    Thanks in advance
    (BASIT)

    What do you mean "it did not work"? You need to post more information, such as what errors you got.
    My guess is that it did work, but it ran on the middle tier, which is where Forms is running. Commands like that need more work to execute on the client.
    Go to the Forms area on OTN and download the Oracle9i Forms Samples. They have demos and source code to move files from the client to the server.
    Coming soon will be a utility called WebUtil which will make this even easier.
    Regards,
    Robin Zimmermann
    Forms Product Management

  • How do I get iTunes on a new computer to recognize and use my files on the local drive?  My music files on iCloud have been recognized.

    My old computer failed.  All files, including iTunes were backed up on a separate drive.  All files have been loaded on the new computer.  iTunes was reloaded, and recognizes all files on iCloud, but does not link to the files on the computer.  How can I re-establish that linkage?

    Hello jzinser,
    I am not sure on how you reset up your iTunes library on your new computer. If you copied the music by dragging on top of iTunes, then the media would have been put into the proper location. If you have the media copied to your computer and have not established in iTunes where it sits, then you will need to do that within the preferences in iTunes. Take a look at the articles below for more information to help sort this out. 
    iTunes for Windows: Moving your iTunes Media folder
    http://support.apple.com/en-us/HT201543
    Locate and organize your iTunes files
    http://support.apple.com/en-us/ht1391
    Regards,
    -Norm G. 

  • Can I use Time Capsule as an external drive to store iTunes files, photos and to back-up my MacBook Air?

    I need an external drive to back-up my MacBook Air. In addition, my iTunes library of music, TV shows & movies is pretty enormous and I'd like to move it from my MacBook to an external drive to free up space on the laptop.
    I will need to access my iTunes library from my Apple TV and the MacBook. I also have an iPad which will need to sync with the external drive.
    I would prefer the external drive to be wireless as I am very rarely docked when at home.
    Is the Time Capsule the right piece of kit for the job?
    Thanks.

    Is the Time Capsule the right piece of kit for the job?
    Not really, no.
    TC is a dumb as board hard disk in an airport extreme router. It has no media servers.. no backup.. it is slow and designed for TM target for laptops. The major one here is lack of backup. Any files you put on the TC can and will be lost at some point.. and to backup you need to have a computer connected to it with an external hard disk.. and a 3rd party backup because TM is too dumb to back up network drives.
    TC is designed to spin up slow and spin down quickly at the end of backup. You will have issues when you stream media from it.
    ATV needs to connect to itunes server.. not the library. You will still need a computer running. Same for lots of things.. since apple designed their system to be dependent on itunes.
    The best idea is a media computer.. a mac mini is ideal. Don't need the latest greatest.. but an actual mac running itunes. Unfortunately it doesn't have large internal drives.. so it is still a bit kludgy in needing a fast external drive.. but at least you have automatic backups.

  • What is the FAT file system and how can I format my LEXAR flash drive with it?

    Recently, Apple support helped me download my songs form iTunes to a LEXAR flash drive. I connected it to the USB connector in my car. My car's display said
    "unsupported". My other LEXAR usb plays music perfectly. What is wrong? My car's manual says that my audio system reads and plays audio files on the USB flash memory device in MP3, WMA, AAC formats. (AAC format files recorded with iTunes only.)  How do I correct this problem?

    Reformatting the drive will completely erase it so make sure you have copies of the files.
    FAT format is an older non-Mac format but is still found on plenty of things such as flash drives.  It's the one format that both Macs and Windows computers can fully use but it has limitations outside small-scale use.  Your Apple person must have reformatted your drive to Mac format which wasn't very smart of the person since almost nothing except Apple products can work with Mac format.  Are you sure you explained how you intended to use the drive, or did you just ask the person how to put files on there?

  • Get image from local file system for printing

    If a user clicks Print, I would like to be able to print the
    stationery header if the user wants to print on plain paper. Can I
    pick up the image from the users local file system and add it
    directly to the print send object? Prior to this the user would
    simply upload the location of the image to the remote server where
    the swf resides, or do I have to ask him to upload the image itself
    and then download it again every time he uses the program?
    Doug

    Here is a snippet from the Flex 2 user guide about urlloader:
    When using this method, consider the Adobe® Flash®
    Player security model:
    For Flash Player 8 and later:
    Data loading is not allowed if the calling SWF file is in the
    local-with-file-system sandbox and the target resource is from a
    network sandbox.
    Data loading is also not allowed if the calling SWF file is
    from a network sandbox and the target resource is local.
    As far as I know there is no way for a user to "trust" an swf
    file. This is not like an activeX control.

  • Images:  displaying from the file system

    I have the instructions for loading images into a database column. However, for my prototype, I want to read leave the images in the file system and store the filenames in the database. Then I want to create a form to display the images in an 'art gallery' kind of format, like a column for the picture, a column for a description, and column for a checkbox, so the user could say 'I want this one, this one, and this one.' What's the best approach for this kind of thing?

    Have you looked at the sample application? I think it has a table just like that, I don't have it installed anywhere anymore, so don't know off the top of my head.
    One way is
    your pictures table would have a format like:
    ID, PICTURE_NAME, DESCRIPTION
    your report is then:
    select htmldb_item.display_and_save(1, id) id,
    '< img src = "/i/your_directory "'|| picture_name ||' " < /img > ' picture,
    htmldb_item.checkbox...

  • Netboot diskless mounts local drive in shadow place (/private/var/netboot)

    Hi!
    I'm on the way to prepare a diskless netboot in OS 10.7.2.
    Everything seems ok. I've made the image, tag it as diskless, default, and the client boots.
    When i run "mount" in the client after boot and sucessful login i get this:
    tarrero-mac:~ root# mount
    /dev/disk2s2 on / (hfs, local)
    devfs on /dev (devfs, local, nobrowse)
    afp_3ubSFX2uPHUn2ArKAf0wlyRV-1.2c000002 on /private/var/netboot (afpfs, nobrowse)
    /dev/disk1s6 on /private/var/netboot (hfs, local, nodev, nosuid, journaled)
    /dev/disk0s2 on /Volumes/Macintosh HD (hfs, local, journaled)
    map -hosts on /net (autofs, nosuid, automounted, nobrowse)
    map auto_home on /home (autofs, automounted, nobrowse)
    map -fstab on /Network/Servers (autofs, automounted, nobrowse)
    afp_3ubSFX2uPHUn2ArKAf0wlyRV-1.2c000006 on /Network/Servers/ichigo.dammz.com/Volumes/RAID1/Users (afpfs, nodev, nosuid, automounted, nobrowse, mounted by daniel.tarrero)
    afp_3ubSFX2uPHUn2ArKAf0wlyRV-1.2c000007 on /Volumes/Users (afpfs, nodev, nosuid, mounted by daniel.tarrero)
    /dev/disk1s2 on /Volumes/OS1 1 (hfs, local, nodev, nosuid, journaled)
    /dev/disk1s4 on /Volumes/OS1-2 (hfs, local, nodev, nosuid, journaled)
    /dev/disk1s5 on /Volumes/OS3 (hfs, local, nodev, nosuid, journaled, noowners)
    I have two physic drives plus one (netboot).
    disk0 is my internal drive (with "Macintosh HD" and "Recovery" partitions), and disk1 is a firewire drive (with "OS1", "OS2", "OS3" and "Data" volumes).
    disk2 (i guess) is the netboot volume.
    Please pay special attention to the two bold lines.
    From the first one (correct me if i'm wrong) i know the machine is "netboot'ing"
    The weird comes with the second bold line, where one of my local drives is getting mounted in the same path!!!
    From this great but outdated document (Troubbleshooting the netboot process), i learn that in this mount point there should be the "shadow" volume mounting, not any local drive.
    Some interesting checks looking for the proper answer in DHCP packets:
    tarrero-mac:~ root# ipconfig netbootoption shadow_mount_path
    afp://netboot100:[email protected]/NetBootClients0
    tarrero-mac:~ root# ipconfig netbootoption shadow_file_path
    NetBoot001/Shadow
    tarrero-mac:~ root# ipconfig netbootoption machine_name
    NetBoot001
    Everything seems ok.
    If i try to manually mount the shadow volume...
    Let's say, CMD+K -> afp://netboot100:[email protected]/NetBootClients0
    ... that mounts the volume propperly, with write permissions.
    In fact, there is a folder in the network shadow volume called "NetBoot001" with a file inside called "Shadow" (binary file, around 50Mb, wooow!)
    So the machine connects to the folder and creates the files needed.
    While almost all local disk mounts in the right place (/Volumes/*), there is always one partition which mounts in the Shadow drive mount path.
    In the logs before, it was the "Data" volume whithin "disk1s6".
    If i physically remove some of this local drives (let's say the firewire one, which s6 partition actually is mount in /private/var/netboot), the partition which get mounted in this place changes too! after that, it was the "Macintosh HD" (disk0s2) which get mount in this wrong place (so it's not an UUID related problem, neither fstab-like systems, i guess).
    I've also made a test in the Netboot Image. I've editted the netboot boot process in /etc/rc.netboot to force (and check if fails) the shadow mount:
    # Define: NETBOOT_SHADOW
    # Purpose:
    #   To change the behavior of the system when choosing a netboot shadow
    #   to use.
    # Values:
    #   -NETWORK-           Try to use the network for the shadow file, if
    #                       that fails, use the local drive
    #   -NETWORK_ONLY-      Only use the network, fail if not available
    #   -LOCAL-             Use the local drive for the shadow file, if that
    #                       fails, use the network
    #   -LOCAL_ONLY-        Only use the local drive for the shadow, fail if
    #                       not available
    NETBOOT_MOUNT=/var/netboot
    #NETBOOT_SHADOW=${NETBOOT_SHADOW:-NETWORK-}
    NETBOOT_SHADOW=${NETBOOT_SHADOW:-NETWORK_ONLY-}
    ... and this also work, forcing the shadow to be "Network only, if not fail", so i define my problem as:
    Regardless the shadow mount is working as expected and properly configured, some ¿random? partition from local drives get mount in it's mounting path.
    Someone knows how to fix that?
    Someone knows what problems derive from a missworking shadow volume?
    Someone points me to where can i make some more tests or debug?
    thanks and regards! and excuse that "homemade" english, i hope you to understand

    HI TArre, I came across you post these past days whilst trying to resolve the same issue. I have resolved this now by using some information similar to what you and Joel have posted and additional from other varied sources not only OSX.
    I have detailed a procedure at https://discussions.apple.com/thread/6039524
    For others having the issue of not being able to DISMOUNT UNMOUNT direct attached file systems when in NetBoot Diskless mode because one is in use for /private/var/netboot part of the cause is certainly the inability of AFP to access AND be authorised for READ/WRITE of the volume/folder for Netbootclients0 (1,2,3 etc) over AFP. Any readers here , I suggest you check that first .
    Use the following osx ipconfig (yes!) commands to verify the AFP path from the net booted client.
    verify the APF netboot shadow file path its trying to use - use Terminal
    ipconfig getpacket en0
    sudo ipconfig netbootpacket
    Sadly there is not much in the way of textual diagnostics in the NETBOOT process.
    Post your results for others to see.
    hth
    Warwick
    Hong Kong

  • How to get the local file system path of an image that loaded into the image component in cq5?

    Hi,
    I'm having hard time uploading image from filesystem where as drag and drop works.
    I'm not getting a path of image selected from filesystem.
    here is my code..
    private String populateImage() throws Exception {
                        if (currentNode != null && currentNode.isNode()) {
                                       Node ImageNode = JcrResourceUtil.createPath(currentNode, "image",
                                                                          null, "nt:unstructured", true);
                                       imageUrl = ImageNode.hasProperty("fileReference") ? ImageNode.getProperty("fileReference").getValue().getString() : "";
           imageUrl = imageUrl.trim();
            log.info("MANAGE PROFILE BEAN IMAGE URL INSIDE IF IS: " + imageUrl);
                        } else {
                                            imageUrl = properties.get("fileReference", "");
                                            imageUrl = imageUrl.trim();
                                            log.info("MANAGE PROFILE BEAN IMAGE URL INSIDE ELSE IS: " + imageUrl);
                        return imageUrl;
    So if I drag and drop..
    ImageNode.hasProperty("fileReference") is returning a valid path
    but if I upload an image  it is returning Null.
    So how to get the path? any suggestions around would be appreciated...

    When you say path you mean you want the path to print out in your HTML? Is that accurate? If so you generally need to constructe that path based on the path to the current component. So if you component is located at /content/mysite/en/about/mypage/jcr:content/parsys/image then the path to the image would generally be something like /content/mysite/en/about/mypage/jcr:content/parsys/image.img.jpg/1283829292873.jpg. The .img. selector triggers the servlet associated with the foundation parbase - /libs/foundation/components/parbase/img.GET.java. The reason you reference it this way is that there is no filesystem path to the image - it is stored in the repository not on the file system, and it requires a servlet or script to ge the binary from the repository and steam it.
    Normally the way you'd construct this is to use the out of the box Image class - so look at /libs/foundation/components/image/image.jsp. Now this example assumes that your component where you loaded the image extends /libs/foundation/components/parbase. If it doesn't then you either have to change your sling:superResourceType to /libs/foundation/components/parbase or some other component that does exten /libs/foundation/components/parbase.

Maybe you are looking for

  • HP Laserjet Pro 400 color printer M451dn Driver needed

    I need to install an HP Laserjet Pro 400 color printer.  When I plug in the USB - it provides a driver which I can open and get to the install process -  The process takes me to the point of plugging in the USB and starts to install. After 10 minutes

  • How to fix a DataGrid headercolumn's headerText causing sizing problems

    Hello, I have a datagrid with filter textboxes underneath the header columns. My problem is that some of the headerText is rather large (in 2 of my columns), and causes it to wrap and stretch the header's height, which ultimately causes the columns t

  • Tkprof in 11g

    hello * how is treated (or meant to be treated) TKPROF tool in 11g version? there are lots of GUI/API tools for tuning and monitoring (all kinds of advisors and checkers, AWR, ADDM), and I wonder if average DBA should bother about it. I can imagine i

  • Import a video into the mediathek

    I got a DVD from a friend with a video on it. This video has been taken by himself with his own video camera. Now I would like to import this video into the mediathek of iMovie. What are the correct steps that it will work properly.

  • Editing narration for a presentation

    Preparing 30 min presnttn. Pre-recorded 5 min naratn, placed in audio wndw. Now, I'm editing transitions/builds to fit naratn and have to start over every time I want to review results. (very tedious) Sound track starts _from the beginning_ even if I