Apex_util.get_blob_file_src('P21_PHOTO',c.resource_id) Public Page

Hi,
I have a page region which is based on pl/sql. This region is actually fetching photo stored in table in the form of BLOB.
Now when the user has not logged in the photo is not displayed but if the user logs in then the photo is displayed.
Could you please help me to figure out what is happening?
My configuration is as follows
Version: APEX 4.2
OS: Windows Server 2008 R2
DB: 11G XE
Web Tier : Apex Listener with Glassfish Server 3.1.2 Open Source Edition running behind apache
Thanks,
Mehabub

Mehabub Sheikh wrote:
I resolved this issue but that is not what I wanted.
Actually I have show image page(X) which is Public and there is one page(Y) where images are uploaded. This Y page was not public.
In show image public page I referred the page item of upload page(Y) and this was why the image was not being displayed.
So what I did -- make the upload page as public page also+
But this is a security breach because anyone can then manipulate the data though I can prevent the unwanted manipulation of the data by creating some processes. This definitely increases the coding effort.
Are there any other ways?See Patrick's post regarding a workaround here: +{message:id=10183115}+

Similar Messages

  • Using APEX_UTIL.GET_BLOB_FILE_SRC

    I want to store a Flash movie in a blob in the database. I then have a report page which lists the movies available, and then when a user clicks a link it opens up a new page which then displays this movie.
    I can do the first report type page fine, but need to know how to use APEX_UTIL.GET_BLOB_FILE_SRC on the second page to open the movie. This cannot be done within a report as I need the page to have very specific settings to ensure that maximum use is made of the page.
    If you can't use APEX_UTIL.GET_BLOB_FILE_SRC, is there another way of doing this using APEX or PL/SQL
    Thanks.

    Noone any suggestions on what might be going wrong?

  • Report portlet not shown in public page

    Hello,
    I created a sql based report in a database provider and published it as a portlet. I'd like to place the portlet in a public page so that users don't have to login to see the report content. However, when I tried to do so, the report content can only be seen by users who have logged in and belong to the groups which are granted view privilege. In the "Grant Access" tab of the report, there is no place to make it public accessible as in page access control. I under stand that I can grant view privilege to all users so that they can see the report content, but they still need to login. Is there a way to make the report be viewed without user login?
    Thanks.
    Yaxu

    Ok I figured out that I need to grant "execute" privilege to PUBLIC user.

  • Problems using apex_util.get_blob_file_src

    I am currently trying to use apex_util.get_blob_file_src to display an image in my report.
    My SQL statement looks as follows:
    SELECT
      obj.ID,
      obj.BESCHREIBUNG as BESCHREIBUNG,
      ort.BEZEICHNUNG as ORT,
      rgn.REGION as REGION,
      AVG(vfb.PREISPROWOCHE) as PREISPROWOCHE,
      '<img src="'||apex_util.get_blob_file_src('P19_UPLOAD',MIN(bld.ID))||'" />' AS IMAGE
    FROM
      F_OBJEKTE obj
      INNER JOIN F_ORTE ort ON obj.ORT = ort.ID
      INNER JOIN F_REGIONEN rgn ON obj.REGION = rgn.ID
      INNER JOIN F_VERFUEGBARKEIT vfb ON obj.ID = vfb.OBJEKT
      INNER JOIN F_BILDER bld ON obj.ID = bld.OBJEKT
    GROUP BY
      obj.ID,
      obj.BESCHREIBUNG,
      ort.BEZEICHNUNG,
      rgn.REGIONThe apex_util.get_blob_file_src only returns an empty string though. P19_UPLOAD is the correct name of the element taking the image file and bld.ID is the correct ID of the element within it's table. The aggregation is because each object can have multiple pictures, but I only want to have one of them displayed in the report. What I am currently suspect is, that maybe the image files aren't uploaded correctly. The datasets are created however, I'm just not sure if the blob filed actually holds the data of the image - and I'm not sure on how to test this... any suggestions?

    Noone any suggestions on what might be going wrong?

  • Problem with public pages having PL/SQL portlets

    I am having problem with a public page which has PL/SQL portlets.
    When I try to access that page without doing login, it displays everything but the portlets which are database driven.
    Is this the way this public page should behave?
    Is there anyway by which I can display data to my public pages from PL/SQL portlets without doing login?
    FYI PL/SQL portlets are in portal30 schema.

    Yes, it has is_runnable function and it looks like this :
    function is_runnable
    p_provider_id in integer
    ,p_reference_path in varchar2
    return boolean
    is
    begin
    If p_reference_path is null the caller may be the provider
    framework (i.e. the Refresh operation of the Portlet
    Repository).
    if (p_reference_path is null) then
    The following if statement is the security mechanism that
    the portlet implements. It does not have any other semantic
    meaning. Any portlet is expected to implement their own
    security mechanism.
    This security mechanism checks if the current user is logged
    on or just accessing the portal through the public account.
    if (wwctx_api.is_logged_on) then
    return true;
    else
    return false;
    end if;
    else
    If p_reference_path is not null the caller makes this call as
    a security check against the portlet instance.
    The security mechanism implemented by this portlet for portlet
    instances is null so true is returned. Returning this value
    indicates that all users have access to this portlet instance.
    return true;
    end if;
    end is_runnable;
    +++++++++++++++++++++++++++++++++++++++++++
    What should I need to change with that function? And what exactly is its use?
    FYI : The code which I wrote for my portlet is by doing some modification in downloaded service portlet. But I have not altered is_runaable function.

  • Use apex_util.get_blob_file_src in HTML region as a source of a PDF file

    Hello,
    How to make apex_util.get_blob_file_src servers as a src attribute of HTML Tag in an HTML region source ??
    my code :
    <div style="">
    <embed height="100%" width="100%" name="embed_content" src="apex_util.get_blob_file_src('P126_FILE',FILE_id)" type="application/pdf" />
    </div>So, I have PDF file in Blob. But The source here does not get rendered... What SRC do I have to use ??
    Regards,
    Fateh

    Hi Fateh,
    How to make apex_util.get_blob_file_src servers as a src attribute of HTML Tag in an HTML region source ??my code :
    <div style="">
    <embed height="100%" width="100%" name="embed_content" src="apex_util.get_blob_file_src('P126_FILE',FILE_id)" type="application/pdf" />
    </div>So, I have PDF file in Blob. But The source here does not get rendered... What SRC do I have to use ??>
    Please see the example here http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_util.htm#CHDICGDA.
        THEN '<img src="'||apex_util.get_blob_file_src('P4_DOCUMENT',id)||'" />' The API gets called in a PL/SQL block, not embedded into a HTML tag.
    Cheers,

  • APEX_UTIL.GET_BLOB_FILE_SRC function

    I started with tutorial “Defining and Viewing BLOB Data in Oracle Application Express 3.1”
    When I realized the links is broking”(http://download.oracle.com/docs/cd/E10513_01/doc/appdev.310/e10499/api.htm#CHDICGDA)” I founded about the “APEX_UTIL.GET_BLOB_FILE_SRC function”.
    I really need somone’s he.
    Thanks,
    Helen

    Hi Helen
    Correct link
    http://www.oracle.com/technology/obe/apex/apex31nf/apex31blob.htm
    Kind regards,
    Iloon

  • Session 0 (Zero) and public pages

    Hi APEX gurus,
    I have some difficulties with public pages and session 0 in combination with Tabs.
    The problem occur when i click on some of my Tabs. For some reason the session 0 is replaces with the proper session id. This only happens for some Tabs. When i go back to the previous Tab, session 0 i back i the URL...
    I have tried to replicate this problem in a new application but I'm not able to reproduse this behavior :(
    I use APEX version 3.2.1.00.12 and I only use one level of Tabs.
    Can anybody give me a hint or clue to how I can debug this problem?
    Best Regards
    Trond

    Some time ago, probably at the time of apex version 3.0 or even before, i had a similar issue.
    Session zero makes sense if you are trying to get a stable URL that can be indexed optimally by search bots.
    If you have a similar requirement, then it makes sense to change tab templates and replace javascript doSubmits with links containing session zero, because that will enable spiders to drill down your application, which would be impossible in the other way, unless there are additional links somewhere else in the page.
    You will achieve the twofold result of stabilizing the indexed URLs and also make session zero more persistent for the user.
    Flavio
    http://oraclequirks.blogspot.com

  • Showing Ronaldo's  DHTML Menu Portlet in public page ..

    hi
    i want to use this portlet in public page .
    indeed,i want to display this portlet to public user .
    i have a public page with an instance of menu on it .
    but , this menu display only for login-user !
    has any way to show this portlet to all public user ?
    Morena !

    hi
    i want to use this portlet in public page .
    indeed,i want to display this portlet to public user .
    i have a public page with an instance of menu on it .
    but , this menu display only for login-user !
    has any way to show this portlet to all public user ?
    Morena !

  • Public pages in authenticated application (NTLM)

    I've been using a custome authentication method based on the NTLM Authentication method documented in the [white paper|http://www.oracle.com/technology/products/database/application_express/pdf/apex_ntlm_authentication_wp.pdf] for a while now with no problems.
    This basically does the following 2 steps:
    1) Standard NTLM Auth
    2) Check returned user ID exists in a seperate table containing valid users
    I've recently been working on an application where the bulk of the application is restricted to users with relevant permissions to edit the data. However there needs to be a public search facility open to anyone.
    I was assuming that I'd be able to do this by just setting the authentication of the relevant page to "Page is Public", however this has presented a problem.
    When I run the app as a user which passes both steps above (ie. auth succeeds), everything works fine.
    However when I run as a user which fails step 2 above (auth fails) the public page loads fine, but whenever anything is posted I get an error like
    Expecting p_company or wwv_flow_company cookie to contain security group id of application owner.
    Error ERR-7621 Could not determine workspace for application (:) on application accept. Also this problem only rears it's head in IE (tried in 7&8), everything works fine in Firefox.
    Also I've created a seperate application with just the public page (and the application set to use the DATABASE auth (i.e. no auth)) and this works fine.
    This is fine as a workaround in this one instance, but i suspect there is likely to be call for similar public pages in other applications, and I don't want to have to create seperate apps for these unless I really have to.
    Anyone any ideas about what the cause of the problem may be, or even pointers about where to look?

    Try Page properties, Security tab, Authentication setting. It has values: Page requires authentication (default) / page is public. Havent tried though..
    Just tried. it works. i manually changed page address in address line like http://something.lt:7777/pls/htmldb/f?p=103:19:3411287399936455. The user connected is "nobody". Public page is page 19.
    Simas
    Message was edited by:
    SimAkas

  • Public Page Parameter does not get value

    I use the following API call to create a URL that will raise an event and send the “facilityId” parameter to the Public Page parameter of a destination page.
    String URLString = EventUtils.constructEventLink(prr,"FacilityInfoPage", linkParams,true,true);
    The link/URL generated by this code is:
    http://ese-ny.its-ese.local/portal/event?_pageid=584,1533923&_dad=portal&_schema=PORTAL&_portlet_ref=584_1533941_584_1533923_1533923&_event_facilityId=36003001001&_eventName_FacilityInfoPage=
    When I click on the link I am taken to the destination page and the following URL shows up in the address bar of the browser:
    http://ese-ny.its-ese.local/portal/page?_pageid=584,1533732&_dad=portal&_schema=PORTAL
    Issue 1: The Public Page parameter of the destination page does not receive the value of facilityId, Why?
    Issue 2: Why is the URL in the address bar truncated after "PORTAL"?
    Any ideas?

    Issue 1: The Public Page parameter of the
    destination page does not receive the value of
    facilityId, Why?The event link sends an event (FacilityInfoPage) to the page with the given parameters if any. In the page's edit tab you can link the event to a page and link the event's parameters to page parameters. This does not happen automatically.
    So probably you haven't linked the event parameters to page parameters.
    Issue 2: Why is the URL in the address bar
    truncated after "PORTAL"?After an event is triggered you are forwarded to the page specified for the event with the specified parameters in event. If none specified I guess you go to the original page with no parameters. The URL is then only the URL of the page.

  • How To Make A Public Page Parameter (similar to session)

    Hi, I'm new to Oracle Portal
    I wonder how to make a public parameter that can be accessed from any page (similar to session).
    So the portlets can use the public parameter.
    Case:
    when user logged in, I pass the employee_ID to the session.
    Portal pages, which contains employee portlet, and some other portlet depends on employee_ID.
    So I think, may be there's a way to set the parameter for once, but the value is accessible until the user log off.
    Any suggestion or help?
    Thx before,
    Chris

    Let me explain the problem once again:
    Page 1 Portlet 1 contains employee table
    ID, Name, Address
    When I click the employee ID (using event), it will be pass the value to page parameter EMPID
    And i want this EMPID can be accessed by
    Portlet 2 - Showing sales report
    Portlet 3 - Showing report
    Portlet 4 - Showing chart
    Portlet 5
    and so on
    Portlet 2, 3 4, 5, and so on is using EMPID as the parameter too,
    but these portlets are located in different page
    Portlet 2 is in page 2
    Portlet 3 is in page 3
    Portlet 4 is in page 4
    Portlet 5 is in page 5
    and so on
    First I think about using Package wwpro_api_parameters
    but after read further, this package can get and retrieve only
    I wonder can this (public page parameter) be done by using default Oracle Portal Tools / API, or I should do some java coding, or something else?
    Please help me...
    Thanx before,
    Chris

  • Urgent Help: How to Convert a Public Page into an Internal page

    Hi,
    i need to convert public pages of a collaboration room into internal pages.
    Please let me know if you know the solution.
    Regards,
    vibhu

    You should probably stick to the original thread on this, otherwise you'll end up going over repetitive information...
    http://forums.adobe.com/thread/1338668?tstart=0

  • IP Filter Public Pages

    We are about to deploy our corporate Intranet and I was wondering if there is an easy way to IP Filter all pages that are Public so that they are redirected to another page. We want to be able to redirect all traffic that comes in from outside of our domain to a seperate page that has less information than the ones that come from within our domains IP range. Particularly, we want to redirect those that might have added a specific Public page to their Favorites so that everything from outside our domain has to go to one certain page. Does anyone have any suggestions?
    Thanks in advance for any help.
    Sean L. Hudson MS, RRT
    Manager, Patient Financial Applications
    Information Services
    Shands HealthCare
    (352) 265-0680 x8-5573
    [email protected]
    Beeper - (888) 898-5322

    Andreas,
    No - everyone needs to be able to access the intranet from both inside our IP range or from without. The diffeerence is, we display much more public content on our Intranet site vs our Extranet site.
    Thanks for the reply-
    Sean

  • Login to a public page

    Hello all,
    I want to create a public page which is accessible for everyone. The user should have the possibility to log in to that page, so he can change/see his account data. It's important that it's all on the same page. Is it possible to create a public page with all the login pl/sql logic copied in that public page.
    Learco

    Thanks to the quick response, in fact it's a page with one region that calls a pl/sql procedure of a package (> 4000 lines of code).
    I removed the FORM OPEN/FORM CLOSE tags in the template, because there are more forms on that page (beside the login page that dynamically should display) like a search option etc. and made my own 'form submit' handling
    Should I turn the FORM tags in the template back on and let htmldb do the handling of the different forms with the 'accept' package.
    Learco

Maybe you are looking for

  • Adobe Acrobat Pro XI Serial Number

    Hello, Where would I find Adobe Acrobat Pro XI serial number on the machine it is installed on?

  • Multiple JRun connector clusters on the same servers?

    I am trying to set up 2 clusters of jrun instances on the same set of 4 servers. Let's call them 192.168.246.1, 192.168.246.2, 192.168.246.3, 192.168.246.4. Each jrun server has 2 instances, instance_[n]_a and instance_[n]_b, where [n] is the last bi

  • Oracle form: how to map other vales in list item

    Hi i am trying to retrieve data from database to listitem. I am having error when trying to set "mapping of other values". Can anyone suggest me a way. thanks. eiei

  • Jagged edge of Smart Object in PS CC. Anti-alias is disabled.

    I created a rectangle shape in PS and make it as Smart Object. I get jagged edged Smart Object when I do rotate, skew or perspective it. Someone suggested that turning on the anti-alias feature in the option bar would solve this issue. However, When

  • No longer receiving all episodes for a subscribed podcast

    No longer receiving all episodes for Bill Maher,  They seem to be intermittent. iTunes on my Computer shows last full episode is 232, but iTunes store shows full episodes of 233 and 234. My Computer does show some recent episodes such as Overtime for