Item style messagDownload for a blob datatype shows junk

Hello everybody,
I am using the item style 'messagDownload' for a blob datatype , but it is showing junk characters in the output page.
Has anybody faces this isse before.
Thanks in advance.
Riyaz

hi ,
i am having the same problem like yours. when i display the table in oa f page which contains filedata as blob , it is printin junk value.
i need to replace those junk value with any other character say '(Blob)'.
please help me if u solved this problem.
thanks

Similar Messages

  • Can we implement partial page rendering on item style Flex??

    Hi All,
    In an xml,
    I have item style 'Flex' for expense account.
    Requirement is :
    In the same page i have other LOV which brings the data based on one of the segments of that expense account.
    So any changes in one of the segments for the expesne account need to be stored and LOV query should be modified accrodingly..
    So trying with following possibilties
    1) Use partial page rendering for expense account
    2) Split the page into two so that first expense account is displayed and any modifications to it are handled in controller and use LOV Mappings to update the query.
    So can partial page rendering can be implemented for Item style "Flex".
    Can anyone please provide the inputs to handle this scenario and best possible solution?
    Issue is very hot right now.. Quick help needed..

    Hi
    No u can not use PPR for flex items although u can create context flexfield .
    thanx
    Pratap

  • How to show pdf or word icons for a BLOB column in a report?

    Hi,
    I am getting interested for the blob columns, I have created some columns for storing some pdf drawings and pictures for specific items in a table, it is ok to show a text like 'download' or any other text in the report by setting the following blob attribute:
    DOWNLOAD:TICKET_DETAILS:ATTACHMENT:TICKET_DETAILS_ID::MIME_TYPE:FILE_NAME:::inline:Download
    but instead of texts, I would like to show a small pdf image for my Blob file, or a word image or Excel image, according to the different file type.
    how to do that?
    and instead of inline or attachment this two options, I would like when the user click the image of the file, the browser will show the image in a new window, or a new browser tab.
    I tried the inline option for my file at Google Chrome, but when it showed the pdf file within the browser, I cannot get back to my app by clicking the 'backward' icon at the browser menu, it will stuck there and I have to close the broswer and then login to the app again, instead of simply returning back to the previous page within the app.
    Please help me out.
    Thanks
    Peter Yawei . Zhang

    Please try using a query like below for your report.
    SELECT ticket_details_id,
    CASE
       WHEN NVL(dbms_lob.getlength(attachment),0) = 0 THEN NULL
       ELSE
          CASE
             WHEN mime_type LIKE 'image%'
                THEN '<a href="'||apex_util.get_blob_file_src('P101_ATTACHMENT',ticket_details_id)||'" target="_blank"><img src="/i/image_icon.gif" /></a>'
             WHEN mime_type = 'application/pdf'
                THEN '<a href="'||apex_util.get_blob_file_src('P101_ATTACHMENT',ticket_details_id)||'" target="_blank"><img src="#IMAGE_PREFIX#menu/pdf_32.gif" /></a>'
             WHEN mime_type like '%ms-excel%'
                THEN '<a href="'||apex_util.get_blob_file_src('P101_ATTACHMENT',ticket_details_id)||'" target="_blank"><img src="/i/excel_icon.gif" /></a>'
             WHEN mime_type like '%msword%'
                THEN '<a href="'||apex_util.get_blob_file_src('P101_ATTACHMENT',ticket_details_id)||'" target="_blank"><img src="/i/word_icon.gif" /></a>'
             WHEN mime_type like '%ms-powerpoint%'
                THEN '<a href="'||apex_util.get_blob_file_src('P101_ATTACHMENT',ticket_details_id)||'" target="_blank"><img src="/i/powerpoint_icon.gif" /></a>'
             ELSE '<a href="'||apex_util.get_blob_file_src('P101_ATTACHMENT',ticket_details_id)||'" target="_blank"><img src="/i/office_icon.gif" /></a>'
          END
    END attachment
    FROM ticket_details
    WHERE ticket_details_id = :P102_TICKET_DETAILS_IDPlease note that I am using APEX_UTIL.GET_BLOB_FILE_SRC function to download the BLOB files. The first parameter of this function in my example query is P101_ATTACHMENT, which refers to page item of type "File Browse" on page 101, which is a DML form on table TICKET_DETAILS. Replace it with the appropriate page number. Please refer to "Working With BLOBs Procedurally" section of this APEX 3.2 documentation for more: [url http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/advnc.htm#sthref2199]http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/advnc.htm#sthref2199
    Also I have the gif images representing various MIME types on my file server. For e.g., /i/excel_icon.gif. You can use #WORKSPACE_IMAGES# if you want to.

  • How can i make a pl/sql function for BLOB datatype

    hi..anyone here who is very familiar about BLOB datatype. i have a COLUMN_ID, COLUMN_A in a certain TABLE_1. COLUMN_A is blob datatype that contains almost 250,000rows
    SQL>select column_A from table_1 where column_id=1234567
    column_A
    00000001000000010000000606D4E833074B69EC06D4E91F074CO18406D50C58074C031E
    how can i make a user-defined function to compute and convert this blob datatype into decimal length value. this hex value are points in the map.. the function must contain
    1.get the length of a blob then
    2.convert blob to variable hexadecimal characters by parsing it into 8
    3.to_number function or other function used to convert haxadecimal characters to decimal numbers
    4.phythagorean formula to compute length between two points. this is the formula i think LENGTH =
    SQRT(power((coordinate_x-prev_coordinate_x),2)+power((coordinate_y-prev_y),2));
    after this when i type this
    SQL>select user_function(column_A) from table_1 where column_id=1234567
    user_functions(column_A)
    --output length will be in decimal value already
    the function will goes like this
    step1 is to get the blob length
    00000001000000010000000606D4E833074B69EC06D4E91F074CO18406D50C58074C031E
    step2 is parsing of data by eights
    00000001 =>1
    00000001 =>1
    00000006 =>6 (number of coordinates)
    06D4E833 => X1
    074B69EC => Y1
    06D4E91F => X2
    074CO184 => Y2
    06D50C58 => X3
    074C031E => Y3
    step3 to_number function used to convert hex char to decimal
    step4 compute by phytagorean (NOTE ! when computing length the third parsed eight will tell how many coordinates are there..the number of coordinates is ranging from 2 up to E..above example shows 6 coordinates so it means
    LENGTH1 =
    SQRT(power((X2-X1),2)+power((Y2-Y1),2));
    LENGTH2=
    SQRT(power((X3-X2),2)+power((Y3-Y2),2));
    TOTAL LENGTH=LENGTH1 + LENGTH2
    thanks

    its my first time to use that.There's got to be a first tiem for anything. Be brave.
    btw if theres more easy suggestion pls feel free..Well of course the easiest solution would be if the calling program passed in the parameters as separate arguments instead of glomming them together in a string that has to be parsed. This sort of kluj really ought not to have survived into C21.
    Cheers, APC

  • What is bind syntax for blob datatype for sqlite3

    Hi All,
    i have written 2 times.
    1. sqlite3bind_blob(insertstatement, 1, image, -1, SQLTRANSIT);
    it doesn't give compile error but when i run the applilcation it crash the
    simulator.
    2. sqlite3bind_blob(insertstatement, 1, image, -1);
    it gives error like too few arguments.
    here image is object of UIImage........
    pls anyone can tell me what is proper syntax for binding of blob datatype.
    Thankx.
    vavdiyaharesh is online now Add to vavdiyaharesh's Reputation Report Post Edit/Delete Message

    I wanted to do something similar, but as you mention, there isn't a lot of sample code to copy and paste etc, and I didn't have the time to spend investigating this one issue when plenty of other things needed my attention.
    In the end I decided to save my BLOB data as actual files in the document directory and then store a link to these in the database row. Something like primarykey_id_blobname.jpg etc.
    Probably not the answer you want, but hopefully it'll get you past a road block and onto the next item on your list.

  • Unable to generate XML's for BLOB datatypes from Concurrent program

    Hi All,
    I've a requirement to print images on rtf layout. Images are uploaded by end user through attahments men
    there are getting stored in fnd_lobs tables.
    for printing blob images we need to convert them into CLOB and generate XML's.
    I've done the conversion through a function and calling the function in the select query which is generating XML when i run it from toad.
    SELECT xmlgen.getXml(
    'SELECT file_id,mob_getbase64String(file_data) photo
    FROM fnd_lobs
    WHERE file_id = 2490481'
    ,0
    ) FROM dual;
    But the same thing we i registered as concurrent program (SQL*Plus) the program is running into error.
    Output file
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    Invalid at the top level of the document. Error processing resource 'https://dbtdev5i.oracleoutsourcing.com/OA_CGI/FNDWRR.e...
    Input truncated to 17 characters
    ^
    Log file
    Concurrent Manager encountered an error while running SQL*Plus for your concurrent request 10868311.
    Review your concurrent request log and/or report output file for more detailed information.
    Can anyone help me through on how to bypass this error and generate XML's.
    Thanks in Advance
    Jana

    Hi Priya..,
    I have changed the query and registered in apps and now i am able to generate XML's of the blob image and the same is getting printed on the tempate..
    DECLARE
    v_colb CLOB;
    v_query VARCHAR2(1000);
    BEGIN
    v_query := 'SELECT file_id,mob_getbase64String(file_data) photo
    FROM fnd_lobs fl,
    fnd_documents_vl fd
    WHERE fd.media_id = fl.file_id
    AND (fd.end_date_active IS NULL
    OR fd.end_date_active > SYSDATE)
    AND fd.security_type = 2
    AND fd.security_id = fnd_profile.value(''GL_SET_OF_BKS_ID'')';
    --FND_FILE.put_line( FND_FILE.LOG,v_query);
    v_colb := xmlgen.getxml (v_query, 0);
    --DBMS_OUTPUT.put_line (v_query);
    FND_FILE.put_line( FND_FILE.OUTPUT,v_colb);
    END;
    /

  • I have purchased Wedding Style By Miracle Design - it is showing in the downloads but I can not get it into lightroom - I am using a mac and the instructions are for windows.

    I have purchased Wedding Style By Miracle Design - it is showing in the downloads but I can not get it into lightroom - I am using a mac and the instructions are for windows.

    Return, cancel, or exchange an Adobe order

  • My user has posted invoice in FB01 For Venor but its shows as cleared items

    Dear experts
    My user has posted invoice in FB01 For Vendor but its shows as cleared items in G/L and Vendor line items.
    can you please give your suggestion on same
    Thanks and Regards
    vamsi
    Edited by: asuvamsi on Feb 7, 2010 1:07 PM

    Hi,
    Most possible causes for your issue..
    1) Your GL account might not created with Open Item Management, even that GL account is B/S account.
    2) No vendor invoice will be created as cleared items automatically, may be someone might have cleared that invoice with anohter payment document.
    Please verify correctly.
    Thanks,
    Srinu

  • Is EO necessary for the Item Style「MessageFileUpload」on EBS 12.1.3?

    Hello experts,
    When using Item Style「MessageFileUpload」,if the file which is being uploaded
    exists ,the file name with an anchor will be rended and the file can be previewed
    by click it.But the customer found that EO should be added for the VO associated with
    Item Style「OAMessageFileUpload」.If EO is removed,the file will be opened as a blank file.
    So is EO necessary for Item Style「MessageFileUpload」?
    Thank you in advance.
    Best regards,
    Wang
    Edited by: user593662 on May 16, 2012 1:06 AM

    Hi,
    You need to save the file and for that you need the EO.
    Thanks
    Anoop

  • Will "Save For Later" functionality work on BLOB datatype ?

    Hi,
    I read funtionality "Save For Later" from ADF Developer Guide. And tested it using JDEVELOPER 11.1.1.6 on a DB table with Number, Date, Varchar2 datatypes.
    But can I create a table with BLOB datatype & make use of this functionality?
    Thanks in advance for your replies.

    Fill free to try, and let us to know ;-)
    user4945886 wrote:
    But can I create a table with BLOB datatype & make use of this functionality?

  • SharePoint Branding - New Custom Item Style does not appear on dropdown of Item Styles

    We are using custom styles on our SharePoint site. We need to create a new item style for a user requirement. I have created my new item style on the xml file using the existing Visual Studio solution then deployed it on our site. Unfortunately, I couldn't
    seem to see the new style on the Item Style dropdown when I try to edit a webpart.
    I have checked the 14 hive folder and the verified that the xml file is updated with my new item style. I have also verified that the XML is well formed.
    I have done IISReset, BLOB Cached Flush, and remove browser cache but I still couldn't see my new item style.
    Artificial intelligence can never beat natural stupidity.

    I presume you mean themes?
    This link covers the process:
    http://howtosharepoint.blogspot.co.uk/2010/04/how-to-deploy-new-theme-as-feature.html
    It also includes a few comments which might be relevant, have you checked them?

  • Link Item Style to open a PDF hangs if opened in IE in 30 seconds

    Hi,
    I am using Jdeveloper version 9.0.3.
    I have a page in which, I have an advanced table, in which there is a column, with item style - link.
    On the link item there is a PPR event and it should open a PDF file, residing on the server.
    I am using java code to open the PDF file.
    In Internet Explorer, the link doesnt work, infact the Explorer hangs and the user has to exit the window.
    This doesnt happen in Firefox. However, this is critical as , use of firefox is not allowed, and the users have to ultimately use IE.
    Below is the java code for opening the PDF file from the server:
    public void downloadFileFromServer(OAPageContext pageContext, String file_name_with_path, String file_name_with_ext)
    HttpServletResponse response = (HttpServletResponse) pageContext.getRenderingContext().getServletResponse();
    if (file_name_with_path == null || "".equals(file_name_with_path)){
    throw new OAException("File path is invalid.");
    File fileToDownload = null;
    try{
    fileToDownload = new File(file_name_with_path);
    }catch (Exception e){
    throw new OAException("Invalid File Path or file does not exist.");
    if (!fileToDownload.exists()){
    throw new OAException("File does not exist.");
    if (!fileToDownload.canRead()){
    throw new OAException("Not Able to read the file.");
    String fileType = getMimeType(file_name_with_ext);
    response.setContentType(fileType);
    response.setContentLength((int)fileToDownload.length());
    response.setHeader("Content-Disposition", "attachment; filename=\"" + file_name_with_ext + "\"");
    InputStream in = null;
    ServletOutputStream outs = null;
    try{
    outs = response.getOutputStream();
    in = new BufferedInputStream(new FileInputStream(fileToDownload));
    int ch;
    while ((ch = in.read()) != -1){
    outs.write(ch);
    }catch (IOException e){
    e.printStackTrace();
    }finally{
    try{
    outs.flush();
    outs.close();
    if (in != null){
    in.close();
    }catch (Exception e){
    e.printStackTrace();
    }//end catch
    }//end finally
    }//end method
    public String getMimeType(String s)
    int i = s.lastIndexOf(".");
    if (i > 0 && i < s.length() - 1){
    String s1 = s.substring(i + 1);
    if (s1.equalsIgnoreCase("pdf")){
    return "application/pdf";
    }//end if
    }//end if
    return "application/octet-stream";
    }//end method
    Thanks,
    AJ

    Hi Kristofer,
    We did look at the possibility for using messageDownload bean instead of a link, but we do not want to store the file as a LOB.
    The file needs to be stored in the server location.
    Any clue as to why the file opened in the browser ( on clicking on the link) hangs and this is happening only in IE.
    Thanks,
    AJ

  • Problem with download link for a BLOB Column in a "Classic report"

    I am having a problem where I cannot make a download link for a blob column function in a "classic" (non-interactive) report. I went through the tutorial on this topic and it was great help it working out the minor bugs, but I get a 404 error (apex_util.get_BLOB not found). For testing purposes I went ahead and created a an identical report on the same page that is an "Interactive report" and it works like a charm. Same query, same BLOB formatting Mask, pulling data from the same table. So, it really doesn't seem like an issue with the grants, since both reports should be executing as the same user.
    I know it sounds like the obvious answer is to just go with the interactive report and my problem is solved, but the rest of this site uses classic reports, and I don't need the sort features of an interactive report, and the slightly different style of the the report really stands out even if I turn off all the bells and whistles. I don't want to change the css to make them look identical, I just want a regular report to work.

    I eventually found another post: APEX_UTIL.GET_BLOB was not found on this server
    In this post there is the suggestion of putting "dbms_lob.getlength("var")" after the date field in your select. So I changed my query to have it at the end, and now my format mask (DOWNLOAD:table_name:ATTACHED_FILE:FILE_ID::FILE_MIME_TYPE:FILE_NAME:::attachment:Download) works like a charm, in a classic report.

  • Hi when i run this in toad for explain plan  its showing an error ORA_22905

    hi when i run this query in toad for explain plan its showing an error ORA_22905 cannot accesss rows from an non nested table item can anyone help me out
    SELECT
    DISTINCT SERVICE_TBL.SERVICE_ID , SERVICE_TBL.CON_TYPE, SERVICE_TBL.S_DESC || '(' || SERVICE_TBL.CON_TYPE || ')' AS SERVICE_DESC ,SERVICE_TBL.CON_STAT
    FROM
    TABLE(:B1 )SERVICE_TBL
    WHERE
    CON_NUM = :B2
    thanks

    Note the name of this forum is SQL Developer *(Not for general SQL/PLSQL questions)* (so for issues with the SQL Developer tool). Please post these questions under the dedicated SQL And PL/SQL forum.
    Regards,
    K.

  • When I go to purchase an item from iTunes the wrong security questions show up so I cannot correctly answer them. What can I do to fix this?

    When I go to purchase an item from iTunes the wrong security questions show up and I cannot answer them accurately. Also it is now locked. How can I unlock my ID and get the correct security questions?

    1)  Apple ID: All about Apple ID security questions
    If necessary
    2)  See Here... ask to speak with the Account Security Team...
    Apple ID: Contacting Apple for help with Apple ID account security
    3)  Or Email Here  >  Apple  Support  iTunes Store  Contact

Maybe you are looking for

  • How to Use document.Lines.SetCurrentLine

    Hi there, due to an enormous amount of time spent on this issue, I thought I would share how to use the SetCurrentLine method as posted to me by SAP support: It seems very cumbersome, as I have now to do an extra Recorset look up to get all the lines

  • Maintenance View for checktables

    Hi, I had a scenario where I had to create around 30 check tabels(Z Tables). I have to create maintenance view for these tables. Instead of creating 30 transactions is there a better way to do this. If I create a report for this purpose with radio bu

  • Unable to export v-card from Address Book

    After installation of OS 10.6 Snow Leopard. Does anyone have any suggestions to resolve this issue? Thanks.

  • Can't email images from iphoto

    Is there somebody on the phone who can guide me through solving this problem? I always getting messages saying that my server or email address is not recognized or rejected. Trying to find an answer to my problem via "help" windows is wasting my time

  • Two Headers and Data to be populated dynamically

    Hi Gurus, I am trying to display the data dynamically in a table. please provide sample xml and rtf xml tags order sec1 -> empno empname sec2 -> add1, city,state......... sec3 -> job, position................. sec1 | sec2 | sec3 | -------------------