How do I store images uploaded by end users for each record?

I am writing an application which requires end users to upload an image for each record they add. There could be thousands of images, and they are exclusive to this app. I use a File Browse item in order to let the user choose an image file to upload.
But all I have managed to achieve at the moment is storing the full pathname of where the image is on the users machine, which means they can see the images they upload but no-one else can! Obviously not practical. I haven't figured out how to actually upload the images to the server and achieve multi-user access from there.
My questions are, where is the best place to store these images, in the database or in a folder on the server? And what setups do I, or the DBA, need to do for both of these scenarios in order to save the uploaded images and display them.
Hopefully someone can give advice, or point me to some documentation explaining this procedure. Thanks in anticipation.
Rick.

Hi
The file you upload can be found in APEX_APPLICATION_FILES view. If you are want to store the file as BLOB in your table you can use the code similar to:
             SELECT BLOB_CONTENT, FILENAME, MIME_TYPE
             INTO    v_blob, v_actual_name, V_MIME_TYPE
             FROM   APEX_APPLICATION_FILES
             WHERE name = :P216_FILE;Or directly insert in your table using
             INSERT INTO ......... (.....)
             (SELECT BLOB_CONTENT, FILENAME, MIME_TYPE
             FROM   APEX_APPLICATION_FILES
             WHERE name = :P216_FILE);-----
Zulqarnain
http://www.maxapex.com
Low Cost, High Quality Hosting for Oracle Apex

Similar Messages

  • How do I store and retrieve variables end user enters in Dynamic Pages ?

    I have 4 dynamic pages, a user enters in variables on first page. At the next 3 dynamic pages I send the user to I have to display the items they entered on the first page in text items.
    How do I pass these variables ????
    thanks!

    ok, so on my page 1 I have the parameter "name", if I use <ORACLE> tags on this first dynamic page they are executed upon entering the form. The user has to enter the data and if the <ORACLE> tags have already executed where do I store the value ?
    So where do I issue the wwsto_api_session.load_session (in the second dynamic page or the first one) ?
    I can see that I'll use the wwsto_api_session.get_attribute_as_varchar2 ('name') in the second dynamic page with the htp.p - is that right ?
    You wouln't have an example you could share with us all do you ? Sure seems like this is confusing to a lot of people. Are there any useful examples of this in the PDK that show how to do this with the HTML included ?
    thanks again

  • How do I add image upload to web app edit template?

    How do I add image upload to web app edit template. When creating fields I am selecting image from the field type. But the only way to upload and image is when I create the web app item within the admin. The option to upload an image is not available when the user submit web form opens.
    Wont send any of these questions through this email anymore but really needed assistance.
    Thanks,
    Gordon

    On the Details tab of the Web App setup, under Web App Item Options; have you ticked "Allow File Upload" and specified a Default Upload Folder?

  • How do I store images in a jar file to be displayed on a jsp?

    Afternoon all,
    I have created a java component which accepts some parameters and returns a string. The returned string contains html tags to display a table in a webpage when rendered through a browser.
    I want to be able to add this component to any java web project to display my table. The problem is that I want to use images in my table to give the appearance of curved corners.
    How do I store images in my component and render to a webpage?
    Thanks in advance,
    Alex

    You won't be able to make the install of this library as simple as the installation of a jar file. You can't access the images directly in the jar.
    There are a few approaches you can take:
    1 - jar file + resources:
    Have the install as being a jar and a "resources" directory which you store all the images in. Thus the images become part of the web application/web site and are accessible. Probably need to allow an entry in web.xml to configure where/what this directory is called.
    2 - jar file only:
    Provide a servlet to access the images, which will load them from the jar file, using the ClassLoader.getResourceAsStream(). Requires declaration of a servlet in the web.xml file. Won't be as efficient as having the images on disk, but will keep them bundled in the jar file.
    you would generate code such as <img src="myImgServlet?img=.....">
    Cheers,
    evnafets

  • How to remove save, cancel option when end user runs the workbook in Portal

    Hi,
    how to remove save, cancel option when end user runs the workbook and make some small changes like using page items or increasing rows and columns
    I already made 2 changes
    1) I removed the option in Oracle Enterprise Manager under discoverer viewer of saving
    2) I also removed the option of Allow saving changes made in Viewer when adding workbook to portal
    But still the end user gets options of saving when made small changes to workbook like increasing rows and columns
    Is their any place, I need to make changes?
    Thanks in Advance
    Rowdheer

    Don't use JSP to serve a binary file. It almost implies the use of awful scriptlets and the invocation of both the response writer and the response outputstream which would only lead to IllegalStateException headaches in the server logs.
    Use a Servlet instead. Specify the file name as request parameter and let the servlet read the file and write it to the outputstream of the response.

  • How to hide the columns at the end user level thru personalization

    Hi all
    how I can hide the columns that are displayed on the portal. Any personalize option for the end user? Any righ click or some thing?
    I am looking at hiding columns not while developing the iViews / Pages, But in the browsers as the end user.
    i can hide the columns what ever i want while creating the iViews for MDM data. but we cant provide the content administrator role to the end user for hiding the columns what ever they want. they want to hide the columns thru pesonalization option at the end user level.
    Can you please let me know whether we can able to hide the columns at the end user level thru personalization ?? is it posible with standard iViews??
    Regards
    Sunil

    Hi Sunil,
    I understood your requirement properly and seems valid and I tried this at my end but i didnt get the solution. Field list is not visible in Personalize option. I dont think it is possible with MDM standard iViews.
    I was thinking an alternative is if some how we manage to give the permissions to end user only on Result Set iView but if it would be possible it will not be a good design.
    Lets wait for some inputs from others.
    Regards,
    Jitesh Talreja

  • How to display an image in an alv grid in each corresponding row?

    Hi,
    please tell me how to  display an image in an alv grid in each corresponding row, like;;
    tony            23   newyork      <image>
    Mkitharyan  63   washington  <image>
    NOT BY HOTSPOTS/URL.

    you can put image in each cell you want:
    data lo_cmp_usage type ref to if_wd_component_usage.
      lo_cmp_usage =   wd_this->wd_cpuse_alv( ).
      if lo_cmp_usage->has_active_component( ) is initial.
        lo_cmp_usage->create_component( ).
      endif.
      DATA lo_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
      lo_INTERFACECONTROLLER =   wd_this->wd_cpifc_alv( ).
        DATA lo_value TYPE ref to cl_salv_wd_config_table.
        lo_value = lo_interfacecontroller->get_model(    ).
    data col type ref to  CL_SALV_WD_COLUMN.
    col = lo_value->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN( 'IMAGE' ).
    data image type ref to cl_salv_wd_uie_image.
    CREATE OBJECT image.
    image->SET_SOURCE_FIELDNAME( 'IMAGE' ).
    COL->SET_CELL_EDITOR( image  ).

  • How many workbooks have been visited by end users per day

    Hi SDN's,
    How many workbooks have been visited by end user per day.Is there any process to knew... Do we have any T-Codes to knew...
    Thanks & Regardz,
    Aluri

    nope... unless you're in 7.0
    the statistics before 7.0 only check queries... workaround would be to have a report on BW statistics filtering on the queries that are in your workbooks... that might give you an "idea", but if there people who run those queries outside of the workbook, it will "affect" your "statistics"

  • How many workbooks have been visited by end user per day

    <i><b>  Hi SDN's,</b></i>
    How many workbooks have been visited by end user per day.Is there any process to knew...
    <i><b>Thanks & Regardz,
    Aluri</b></i>

    Hi Aluri,
    Statistics are usually not available on workbooks. You can find out how many time a user calls up a particular query (which can be accessed by various workbooks). Because workbooks themseleves do not call up data from the infoproviders.
    You can tell how many times a user has accessed a query by looking at the Statistical queries and objects. Try the following two there is a list of other queries in help that you can go through also:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/68/84353cf261303de10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/68/84353cf261303de10000000a11402f/frameset.htm

  • Get Start and End times for each step in a job

    Can someone tell me how to get the start and end times for each step in a background job?  Table TBTCP only stores the time that the step was saved in a background job.  Table TBTCO stores the times for the entire job and not each individual step.
    Thanks.
    Ryan

    Hi,
    Please check this tables and FM perhaps they may help
    TBTCJSTEP  - Background Job Step Overview
    TBTCR          - Batch scheduler execution time
    TBTCS          - Background Processing: Time Schedule Table
    GET_JOB_RUNTIME_INFO
    Regards,
    Ferry Lianto

  • How to have a unique value for each record??

    could any 1 help me out in this...
    I want to have a column name 'Order No' which should be unique.
    How to generate a unique value for each record.??

    could any 1 help me out in this...
    I want to have a column name 'Order No' which should be unique.
    How to generate a unique value for each record.?? If you are using SQL PLUS to create the table try something like
    this:
    CREATE TABLE ORDER_TEST (
    ORD_NO NUMBER (8) NOT NULL PRIMARY KEY,
    ORDERDATE DATE,
    CUSTID NUMBER (8) NOT NULL,
    SHIPDATE DATE,
    TOTAL NUMBER (8,2) CONSTRAINT TOTAL_ZERO CHECK
    (TOTAL >= 0),
    CONSTRAINT ORD_FOREIGN_KEY FOREIGN KEY (CUSTID) REFERENCES
    CUSTOMER (CUSTID),
    CONSTRAINT ORD_UNIQUE UNIQUE (ORD_NO)
    -- or a simpler table example
    DROP TABLE ORDER_TEST;
    CREATE TABLE ORDER_TEST (
    ORD_NO NUMBER (8),
    ORDERDATE DATE,
    CUSTID NUMBER (8) NOT NULL,
    SHIPDATE DATE,
    TOTAL NUMBER (8,2) CONSTRAINT TOTAL_ZERO CHECK
    (TOTAL >= 0),
    CONSTRAINT ORD_UNIQUE UNIQUE (ORD_NO)
    note: ORD_NO can also be a primary key
    If you are doing the INSERT during runtime from a form first
    create a sequence in SQL PLUS to handle the ORD_NO value:
    Create SEQUENCE ORDERNO_UNIQUEVAL_sqnc
    START WITH 000001
    NOMAXVALUE
    NOCACHE;
    and reference it as the ORD_NO parameter in your INSERT
    statement:
    ORDERNO_UNIQUEVAL_sqnc.NEXTVAL
    note: to maintain data integrity you must use the sequence
    everytime you insert a new order to table. To start a new
    sequence drop the sequence and re-create it with whatever "START
    WITH" value you want.
    Hope this helps
    Kevin

  • How to append parameter with URL for each record in table control?

    Hi,
    I have one table control which contains 5 columns.
    (tripno, startdate, destination, reason, activities)
    In 5th column, i need to display URL for each record.
    for ex:
    www.abc.com/test?tripno=1
    www.abc.com/test?tripno=2
    www.abc.com/test?tripno=3
    when user clicks a particular hyperlink, it navigates to another page/component thru URL with one key field(tripno) to retrieve related records in next page.
    1) i am not able to assign tripno to each record. when i assign tripno, its taking the last value which i assigned. ie. tripno=3 only.
    How to assign URL to Reference field of LINK_TO_URL element at run time?
    OR
    2) we can do like this.
    Simply assign url to reach record without key field.
    www.abc.com/test
    www.abc.com/test
    www.abc.com/test
    when user clicks a particular link, we can assign corresponding key field to the URL.
    Where should i write this event? Bcoz, LINK_TO_URL doesnot have event.
    how to do?

    Hi MOg.
    Not sure whether I understand you .. but in the 5th column you want to have the reference URL. Is this the activities columen from you example?
    Nevertheless, you need a attribute (String) in your context node which contains the URL. Bind this to the reference filed of linktourl. If you can not extend the structure you can create a sub node (cardinality 1:1)  which contains the refernce attribute.
    Then loop over all elements and concatenate www.abc.com/test?tripno= with the tripno of the current element into the reference field.
    Hope tis helps,
    Sascha.
    Bind the

  • How can I give access to a new user for WebView Reporting Log In //IPCC Enterprise

    Hi All,
    How can I give access to a new user for the WebView Reporting Log In ?
    I have IPCC Enterpise 7
    Thanks
    Andres

    Two options: 1. In configuration manager on the AW, use the user list tool to add the users domain account and select Webview access permissions. 2. Using standard Microsoft Active Directory tools or the Cisco Domain Manager tool, add the desired AD user account into one of the "WebView" security groups created within the Cisco OU.

  • How to find out exact labour hour and expenses for each labour attached to

    Team,
    How to find out exact labour hour and expenses for each labour attached to machine
    We are planning to go with CATS.
    But in Cats how Production Planning department get the exact labour coust
    (which includes labour accomodation building , EB etc. paying by comp)
    How to do this in CATS
    REX

    hai
    generally  the schemas are named X000  which stands for common schema  nomination
    x replaced by respective country like for india it is IN00  for US  U000etc
    it is not given according to the group of emplyees but according to the country grouping for your org units
    time schemas are country independent they work for all the countries
    regards
    nalla

  • I backed up two Iphones to the cloud and accidentally chose merge. How can I reset it to have seperate backups for each phone with the same ITUNES login?

    I backed up two Iphones to the cloud and accidentally chose yes to merge the contacts from the two phones. How can I reset it to have seperate backups for each phone even though I am using the ITUNES login?

    i merged two phones contracts are together how to get back to seperate

Maybe you are looking for

  • Line in port not working?

    I've bought a usb web cam and, with the help of "ichatusbcam", can now see a video picture in iChatAv. The web cam also has a in built microphone with a jack plug that goes into the line-in port in my MDD. However when I select the line in port in so

  • Link creation in Acrobat - viewing on ipad

    Hi All As posted above im having problems with a pdf and links on an ipad. I have a 10 page pdf that I have created in indesign ( this doesnt have any interactivity set, just standard pdf output) I then set links using the link tool native in Acrobat

  • Regarding report for recievables by customer

    Hi all,      Is there any T-Code or standard SAP report that shows all the recievables by customers and also customer credit limit. Can any one please assist me with this. Thank You, Ravi Boppana

  • Folder Sync

    Hi, Is there a way to get iTunes to check folders for new music and automatically add that music to its library (without copying, moving or reorganizing the files)? Example - I have a folder that I download new music to. I want iTunes to see this mus

  • Will not open link to a new tab

    When I right click on a link and tell it to open in a new tab it opens a new window instead..... this happens on every website except mozilla.com I recently upgraded to FF 6.0 and I never had this problem with the prior version I was using...