How to download list item attachment from display.aspx

Im uploading documents
to list item in list by
using file upload control. Now I should download that file. I can able to insert documents into list item in attachment column which is predefined but am how can I download the attachments by clicking on the link in display.aspx.
I have written this for uploadFile controller.
SPSite site = SPContext.Current.Site;
SPWeb web = site.OpenWeb();
SPList list = web.Lists["list2"];
//SPListItem itemId = list.GetItemById(5);
int itemId=3;
SPListItem newItem = list.GetItemById(itemId);
byte[] contents = null;
if (FileUpload1.PostedFile != null && FileUpload1.HasFile)
using (Stream fileStream = FileUpload1.PostedFile.InputStream)
contents = new byte[fileStream.Length];
fileStream.Read(contents, 0, (int)fileStream.Length);
fileStream.Close();
SPAttachmentCollection attachments = newItem.Attachments;
string fileName = Path.GetFileName(FileUpload1.PostedFile.FileName);
attachments.Add(fileName, contents);
newItem["CLMSAttachments"] = fileName;
newItem.Update();
Thanks in advance.

Hi ,
It is your browser that decides to download/open the file.
If you have compatible client software for the file (word for docx) your computer will by default automatically try to open it.
But we can force the download. You have to develop a handler/aspx page that will just handle the file download and you have to override the http header "content-disposition" to "attachment;filename=yourfilename"
Here a sample :
var fileName = "myfile.sql";
var r = context.Response;
r.AddHeader("Content-Disposition", "attachment; filename=" + fileName);
r.ContentType = "text/plain";
r.WriteFile(context.Server.MapPath(fileName));
Hope that will help you
Moudhafer

Similar Messages

  • Moving a List Item attachment from one list to another

    Hi,
    What are the best way of coping / moving the List Item attachment using
    jQuery / JavaScript in SharePoint 2013 from one list to another.
    Thanks
    Saroj
    Impossible is nth but good coding :-)

    For your needs better try to code your own solution. See
    SharePoint JavaScript Class Library for details. You can have two possible architectures:
    Make all work from JavaScript. And the first your step will be
    addItem method of SP.List.
    Make processing of selection on client in JavaScript and call your custom server-side component (may be an application page) for items copying (creating copies in new list of already existed items from initial list.). See
    this for example.
    Also be careful with context.load. It's recommended to write all next code in context.executeQueryAsync. Use Firebug in FF and developer tools in Chrome for debugging your code and to find what is wrong.
    Or 
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/1d01a48f-c28b-467b-acd1-22e5fb266670/how-to-retrieve-list-items-and-copy-it-to-other-list-using-javascript-object-model?forum=sharepointdevelopmentprevious
    <script type="text/javascript">
    ExecuteOrDelayUntilScriptLoaded(retrieveListItems, "sp.js");
    var siteUrl = 'Site Url';
    function retrieveListItems() {
    var clientContext = new SP.ClientContext(siteUrl);
    var oList = clientContext.get_web().get_lists().getByTitle('List1');
    var camlQuery = new SP.CamlQuery();
    camlQuery.set_viewXml('<View><Query><Where><Geq><FieldRef Name=\'ID\'/>' +
    '<Value Type=\'Number\'>1</Value></Geq></Where></Query><RowLimit>10</RowLimit></View>');
    this.collListItem = oList.getItems(camlQuery);
    clientContext.load(collListItem);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
    function onQuerySucceeded(sender, args) {
    var listItemInfo = '';
    var listItemEnumerator = collListItem.getEnumerator();
    while (listItemEnumerator.moveNext()) {
    var objListItem = listItemEnumerator.get_current();
    var clientContext = new SP.ClientContext(siteUrl);
    var oList = clientContext.get_web().get_lists().getByTitle('List2');
    var itemCreateInfo = new SP.ListItemCreationInformation();
    this.oListItem = oList.addItem(itemCreateInfo);
    oListItem.set_item('Title', objListItem.get_item('Title'));
    oListItem.update();
    clientContext.load(oListItem);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceededFinal), Function.createDelegate(this, this.onQueryFailed));
    function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    function onQuerySucceededFinal(sender, args) {
    //Do next set of operation if needed
    </script><input name="btnVarIQReject" onclick="retrieveListItems()" type="button" value="Submit"/>
    Please use my above POC code to start. This will copy all the title field value from list1 to list2
    If this helped you resolve your issue, please mark it Answered

  • Convert list item attachment from docx to pdf using Word Automation Services

    I have been trying to convert List Item attachments from docx to pdf using word automation services, it works in a normal document library but when I use the list attachment it throws a null reference error.
    var settings = new ConversionJobSettings();
    settings.OutputFormat = Microsoft.Office.Word.Server.Conversions.SaveFormat.PDF;
    var conversion = new ConversionJob("Word Automation Services", settings);
    conversion.UserToken = SPContext.Current.Site.UserToken;
    var wordFile = SPContext.Current.Site.RootWeb.Url + "/" + wordForm.Url;
    var pdfFile = wordFile.Replace(".docx", ".pdf");
    conversion.AddFile(wordFile, pdfFile);
    conversion.Start();
    Using reflector I was able to see my problem lies in Microsoft.Office.Word.Server.FolderIterator.cs where it uses SPFile.Item which returns NULL
    internal void CheckSingleItem(SPFile inputFile, SPFile outputFile)
    Microsoft.Office.Word.Server.Log.TraceTag(0x67337931, Microsoft.Office.Word.Server.Log.Category.ObjectModel, Microsoft.Office.Word.Server.Log.Level.Verbose, "OM: FolderIterator start a single item: source='{0}'; dest='{1}'", new object[] { inputFile.Url, outputFile.Url });
    Stopwatch stopwatch = Microsoft.Office.Word.Server.Log.StartPerfStopwatch();
    try
    this.CheckInputFile(inputFile.Item);
    this.CheckOutputFile(outputFile.Url);
    Is there any way to get around this?

    Hi Qfroth,
    According to your description, my understanding is that when you use word automation service to convert Word to PDF for list item attachment, it throws the null reference error.
    I suggest you can create an event receiver and convert the word to memory stream like below:
    private byte[] ConvertWordToPDF(SPFile spFile, SPUserToken usrToken)
    byte[] result = null;
    try
    using (Stream read = spFile.OpenBinaryStream())
    using (MemoryStream write = new MemoryStream())
    // Initialise Word Automation Service
    SyncConverter sc = new SyncConverter(WORD_AUTOMATION_SERVICE);
    sc.UserToken = usrToken;
    sc.Settings.UpdateFields = true;
    sc.Settings.OutputFormat = SaveFormat.PDF;
    // Convert to PDF
    ConversionItemInfo info = sc.Convert(read, write);
    if (info.Succeeded)
    result = write.ToArray();
    catch (Exception ex)
    // Do your error management here.
    return result;
    Here is a detailed code demo for your reference:
    Word to PDF Conversion using Word Automation Service
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • How to download splist item attachment using custom ribbon button

    Hi All,
    I have a requirement to download sp list items attachments in a zip format to file share. Is there a way to do this? please do let me know.
    Your quick turnaround is much appreciated
    MercuryMan

    Hi,
    According to your post, my understanding is that you want to download list items attachments in a zip format to file share.
    You can create custom ribbon action.
    More information:
    SharePoint 2010 Download as Zip File Custom Ribbon Action
    Download files as Zip File in SharePoint
    Create a SharePoint Custom Action to Zip and Download a Document Set
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • How to Copy list item attachment to document library in SharePoint 2010

    Hi,
    How to Create a folder ("List Item - Title Name") in Document library and copy list items Attachments to the same folder in SharePoint 2010,thanks in advance.
    Regards,
    Selvan.J
    Selvan J

    Hi,
    You should first check whether the folder exists in the library, if the folder not exists, then create it.
    I had modified the code, you can use the following code snippet to achieve it.
    private void EventCopyFileWhenItemCreatedOrUpdated(SPItemEventProperties properties)
    SPSite site = new SPSite(http://YourSiteName);
    SPWeb web = site.OpenWeb();
    SPList doclibList=properties.Web.Lists["YourLibName"];
    bool foundFolder = false;
    if (doclibList.Folders.Count>0)
    foreach (SPListItem fitem in doclibList.Folders)
    if (fitem.Title.Equals("FolderA"))
    foundFolder = true;
    break;
    if (foundFolder == false)
    SPListItem folder = doclibList.Folders.Add(doclibList.RootFolder.ServerRelativeUrl, SPFileSystemObjectType.Folder,"FolderA");
    folder.Update();
    string fUrl = doclibList.RootFolder.ServerRelativeUrl+"/FolderA";
    SPFolder myLibrary = web.GetFolder(fUrl);
    if (properties.ListTitle == "YourListName")
    SPListItem sourceItem = properties.ListItem;
    properties.Web.AllowUnsafeUpdates = true;
    //get the folder with the attachments for the source item
    SPFolder sourceItemAttachmentsFolder =
    sourceItem.Web.Folders["Lists"].SubFolders[sourceItem.ParentList.Title].SubFolders["Attachments"].SubFolders[sourceItem.ID.ToString()];
    //Loop over the attachments, and add them to the target item
    foreach (SPFile file in sourceItemAttachmentsFolder.Files)
    if (CheckFileNameExist(file.Name , properties) == false)
    byte[] binFile = file.OpenBinary();
    myLibrary.Files.Add(System.IO.Path.GetFileName(file.Url) , binFile);
    private bool CheckFileNameExist(string fileNameInFileAttach, SPItemEventProperties properties)
    bool flag = false;
    SPList myDocumentLib = properties.Web.Lists["YourLibName"];
    SPQuery spQuery = new SPQuery();
    SPListItemCollection items = myDocumentLib.GetItems(spQuery);
    foreach (SPListItem item in items)
    if (fileNameInFileAttach == item["Name"].ToString())
    flag = true;
    break;
    return flag;
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to download list of transaction from SAP area menu in SAP1 transaction

    Hello All,
    My requirement is I want to download the list of transaction under the SAP area menu in SAP1 transaction.
    I tried with SE43, entered area menu as S000, but it doesn't give me of the same hierarchy and some transaction were missing, for example IH08 is available in SAP1 transaction and not available in SE43.
    Could you please let me know is there any way to download the list.
    Regards,
    Thanga

    If you open SE43N, type SAP1 and Display (F7), Tree is shown with collapsed nodes. Print option in Menu shows the same tree as a list. The nodes do not get expanded by default.
    So in order to get expanded tree in list ( so that transaction codes can be seen), you need to expand the tree before choosing Area Menu > Print.
    This works for average area menu which is less number of transactions.
    Since you are looking for SAP1, it has lot of transactions, and on expanding it, information message is shown as:
    The tree could only be partially expanded for performance reasons
    Diagnosis: The hierarchy could not be completely expanded for performance reasons; it has too many subnodes.
    Procedure:
    Restrict the number of nodes to be expanded by expanding a lower-level node
    or
    Expand this node repeatedly until this message no longer appears. The hierarchy is then completely expanded.
    As a result, IH08 transaction which is under Quality Management node can't be seen in list view as overflow occurred before this node was reached.
    On debugging, it can be seen that the tree is expanded recursively by standard until an overflow flag is set.
    In order to get around this overflow protection, you can write a custom code.
    Below snippet is for demonstration purpose.
    1. Run FM BMENU_DISPLAY_RSTREE in SE37 with tree_id as QM01
    2. Run my snippet that calls same FM in the end
    Compare 2 outputs and see the difference.
    I am going 1 level deep and IH08 transaction can be seen in output.
    Similarly, you can write a code that recursively expands every sub-tree found so that entire list can be seen.
    DATA: ls_nodes  TYPE hier_iface,
          lt_nodes  TYPE STANDARD TABLE OF hier_iface,
          lt_nodes1 TYPE STANDARD TABLE OF hier_iface,
          lt_nodes2 TYPE STANDARD TABLE OF hier_iface,
          lt_refs1  TYPE STANDARD TABLE OF hier_ref,
          lt_refs2  TYPE STANDARD TABLE OF hier_ref,
          lt_text1  TYPE STANDARD TABLE OF hier_texts,
          lt_text2  TYPE STANDARD TABLE OF hier_texts,
          lv_tree_id TYPE hier_guid VALUE 'QM01'.
    * read top level node
    CALL FUNCTION 'STREE_HIERARCHY_READ'
      EXPORTING
        structure_id       = lv_tree_id
        read_also_texts    = abap_true
      TABLES
        list_of_nodes      = lt_nodes
        list_of_references = lt_refs2
        list_of_texts      = lt_text2.
    * read hierarchies of sub-trees
    lt_nodes2 = lt_nodes.
    LOOP AT lt_nodes INTO ls_nodes WHERE node_type EQ 'AMRF'.
      CLEAR: lt_nodes1, lt_refs1, lt_text1.
      CALL FUNCTION 'STREE_HIERARCHY_READ'
        EXPORTING
          structure_id       = ls_nodes-reftree_id
          read_also_texts    = abap_true
        TABLES
          list_of_nodes      = lt_nodes1
          list_of_references = lt_refs1
          list_of_texts      = lt_text1.
    * add sub-tree details to main tree
      APPEND LINES OF lt_nodes1 TO lt_nodes2.
      APPEND LINES OF lt_refs1 TO lt_refs2.
      APPEND LINES OF lt_text1 TO lt_text2.
    ENDLOOP.
    CALL FUNCTION 'BMENU_DISPLAY_RSTREE'
      EXPORTING
        tree_id       = lv_tree_id    " Unique ID - 32 Characters
      TABLES
        list_of_nodes = lt_nodes2    " Hierarchy Maintenance Tool Node Passing Interface
        list_of_refs  = lt_refs2     " List of References to Structure Items
        list_of_texts = lt_text2.    " General Structure Repository Node Text

  • Copy List Item Attachment for archiving using SharePoint Designer 2013

    hi,
    how to Copy List Item Attachment for archiving using SharePoint Designer 2013

    1. You can use access:
    http://viziblr.com/news/2011/11/5/batch-exporting-sharepoint-2010-list-item-attachments-using.html
    Or you can try below script
    You can loop through each list item, and get each attachment.
    List<SPAttachment> attachments = new List<SPAttachment>();
    SPList list = SPContext.Current.Web.Lists["My List"];
    foreach (SPListItem item in list.Items)
    attachments.AddRange(item.Attachments.Cast<SPAttachment>());
    If this helped you resolve your issue, please mark it Answered

  • How to copy List item from one list to another using SPD workflow using HTTP call web service

    Hi,
    How to copy List item from one list to another using SPD workflow using HTTP call web service.
    Both the Lists are in different Web applications.
    Regards, Shreyas R S

    Hi Shreyas,
    From your post, it seems that you are using SharePoint 2013 workflow platform in SPD.
    If that is the case, we can use Call HTTP web service action to get the item data, but we cannot use Call HTTP web service to create a new item in the list in another web application with these data.
    As my test, we would get Unauthorized error when using Call HTTP web service action to create a new item in a list in another web application.
    So I recommend to achieve this goal programmatically.
    More references:
    https://msdn.microsoft.com/en-us/library/office/jj164022.aspx
    https://msdn.microsoft.com/en-us/library/office/dn292552.aspx?f=255&MSPPError=-2147217396
    Thanks,
    Victoria
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How can I turn off the Download pop up Window from displaying when downloading a file?

    How can I turn off the Download pop up Window from displaying when downloading a file?

    To not display the built-in Firefox downloads window, Tools > Options > General tab, un-check "Show the <u>D</u>ownloads window when downloading a file". See: http://support.mozilla.com/en-US/kb/Options+window+-+General+panel
    If you have some other download manager installed, you will need to see the documentation for the download manager.
    <br />
    You have installed plugins with known security issues that should be updated. To see the plugins submitted as part of your question post, click "More system details..." to the right of you original question.
    *Shockwave Flash 10.1 r53
    *Next Generation Java Plug-in 1.6.0_18 for Mozilla browsers
    #'''Check your plugin versions''': http://www.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update Shockwave Flash'''
    #*Use Firefox to Download and SAVE to your hard drive from one of the links below; '''<u>the links take you directly to the download and you avoid the "getplus" download manager and "extras" (i.e., toolbars, virus scan links, etc.) on the main Adobe page.</u>'''
    #*SAVE to your Desktop so you can find it
    #*After download completes, close Firefox
    #*Click on the file you just downloaded and install
    #**Note: Vista and Win7 users may need to right-click the installer downloaded and choose "Run as Administrator"
    #**Note: Most browsers other than IE will also get updated with this one download
    #**Note: To update IE, same procedure '''<u>but use IE</u>''' to go: http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_ax.exe
    #*After installation, restart Firefox and check your version again.
    #*'''<u>Download links and other information</u>''':
    #** https://support.mozilla.com/en-US/kb/Managing+the+Flash+plugin#Updating_Flash
    #** '''<u>or</u>''' you can download, save, then run the manual installers for IE, then for Firefox (and all other browsers) from here: http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller
    #* Also see: http://support.mozilla.com/en-US/kb/Installing+the+Flash+plugin
    #* Also see (if needed): http://kb2.adobe.com/cps/191/tn_19166.html#main_Uninstall
    #'''Update Java:'''
    #* Download and update instructions: https://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org/Java#Multiple_Java_Console_extensions
    #* After the installation, start Firefox and check your version again.

  • Please tell me how to handle list item in this concern

    please tell me how to handle list item in this concern
    My problem is:
    i have a category table with column categoryname(varchar type)
    I want to display the records of categoryname in a drop down list (i.e., list item )
    So ..please tell me how to do it
    Thanks in advance..

    This code is just a sample from the Help documentation. It won't work until you modify it for your form.
    Why do you have "steps" in your code? You are suppose to do what the steps tell you. You don't place the steps in your code. The steps must be removed from your code.
    Step 1 code goes in a program unit, not in a trigger.
    Step 2 and 3 code usually goes in a trigger.
    You will have to replace the names of the items and record group with your own names as you have defined them in your form.
    step 1: create a procedure in your application
    procedure load_list(itm in VARCHAR2, rg in VARCHAR2) is
    group_id RecordGroup := Find_Group(rg);
    list_id Item := Find_Item(itm);
    Begin
    if Populate_Group(group_id)<>0 then
    Message('Unable to populate record group');
    Raise Form_Trigger_Failure;
    end if;
    Clear_List(list_id);
    Populate_list(list_id, group_id);
    end;
    step 2: create a record group named rg_cat and assign Record Group Query to something like "select categoryname from category"
    step 3: call this procedure as
    load_list('categoryname','rg_cat');

  • I have an iMac 10.8.2.  When trying to download a photo attachment from an email I received the following : "You can't open application IPhoto because the classic environment is no longer supported."  This occurred on 10/25/12 at about 11PM CST.  The iPho

    I have an iMac 10.8.2.  When trying to download a photo attachment from an email I received the following : "You can't open application IPhoto because the classic environment is no longer supported."  This occurred on 10/25/12 at about 11PM CST.  The iPhoto icon in both the dock and the application folder is grayed out with the no or do not enter symbol.  How can I resolve this so I can access my photos?

    I have two iPhoto icons in applications. One is grayed out and has the no symbol, the date of last modification is Oct 25, 2012 11:07pm.  The size is 110 KB and kind shows Applic…lassie). When I click on with CMD i it shows:
    kind: Application (Classic)
    size: 109,677 bytes (111 KB on disk)
    Where: / Applications
    Created:  Thursday, October 25, 2012 11:07 PM
    Modified: Thursday, October 25, 2012 11:07 PM
    Version:  --
    More info:  --
    Name and extension:  iPhoto.app
    Hide extension is grayed out and checked
    Preview shows a photo I had attempted to save to iPhoto
    The second iPhoto icon is also grayed out, but the symbol is an envelope, the date of last modification is Oct 12, 2012 12:09PM.  The size is 548 KB and kind is shown as an email message.  When I clicked on it with CMD i it shows:
    Kind: Email Message
    Size: 547,665 bytes (549 KB on disk)
    Where:  /Applications
    Created: Friday, October 12, 2012 12:09 PM
    Modified:  Friday, October 12, 2012 12:09 PM
    Version: not listed
    Name & Extension:  iPhoto.eml
    Hide Extension: checked
    Open with:  Mail
    Preview shows a photo I had attempted to save to iPhoto

  • How to get List Item attachments name without write any custom code or any database query?

    Hi,
    How to get List Items attachments name without write any custom code or any database query?

    You can get it from Rest,
    There are 2 options,
    1) create a 'Result Source' which has a search query for that List which has attachments 
     - Use rest query to get the 'Filename' , it will have the attachment file name 
    For example, if the result source id is : 73e6b573-abf8-4407-9e5f-8a85a4a95159 , then the query will be 
    http://[site URL]/_api/search/query?querytext='*'&selectproperties='Title,Path,FileExtension,SecondaryFileExtension,Filename'&sourceid='73e6b573-abf8-4407-9e5f-8a85a4a95159'&startrow=0&rowLimit=100
    You can refine the query, be giving proper 'querytext'
    2) Use the List rest api
    For example if your list guid is :38d524a1-e95c-439f-befd-9ede6ecd242e
    You can get he attachments for 1st item using this 
    http://[Site URL]/_api/lists(guid'38d524a1-e95c-439f-befd-9ede6ecd242e')/items(1)/AttachmentFiles
    get2pallav
    Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.

  • How to download / read  text attachment  in Sender Mail Adapter  IN XI

    Hi
    I would like to know how to download / read text attachment in sender mail Adapter & sent same attachment to target system using file adapter.
    Please help how to design / resolve this concept.
    Regards
    DSR

    I would like to know how to download / read text attachment in sender mail Adapter & sent same
    attachment to target system using file adapter.
    Take help from this blog:
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    From the blog:
    However in most cases
    our message will not be a part of the e-mail's payload but will be sent as a file attachment.
    Can XI's mail adapter handle such scenarios? Sure it can but with a little help
    from the PayloadSwapBean adapter module
    Once your message (attachment) is read by the sender CC, you can perform the basic mapping requirement (if any) to convert the mail message fromat to the file format.....configure a receiver FILE CC and send the message...this should be the design...
    Regards,
    Abhishek.

  • How to make list item as text item  in oracle forms 6i

    Hello all,
    I created one form with one list item named "Country".. This list item shows country name for the particular employee in the employee table.I created this list item as database field. In the enter query mode i search an employee , This should act as item text.. Suppose i want to add an employee in enter query mode then i fill all the necessary fields,and
    when i click "country" list item it should display all the country names from "country_tab" table..So based on the situation
    this should act as list item and item text.. Can i Do this ?.. Pls help me.

    hai Andreas Weiden,
    I simply explain my requirement:
    I want to insert data and quering data by using single form...So, I created one form with data block. This form created from employee table.I have one text item in this form named country.This is database item.
    Ok ,Now the actual problem comes.I press "Enter query" in tools menu,Then enter one employee number in employee_no field.after i press
    Execute query In tools menu. It shows all the details corresponding to that employee..
    Note: here "country" text item also shows employees country.
    Right, Now i have another requirement. In the same form I want to insert a new employee. For that
    I planed to changes country text to list item [ because when  insert i can easily pick up one country .it
    reduces typing work ] . I have another table "COUNTRY". Using this table, i should populate country list item..
    So, the country item should act as both text item [When quering] as well as list item [ When inserting ]
    Is there any idea ti do this ?
    If this not possible then what is the alternative ?
    Pls suggest me..

  • How to download a SOAP attachment using pl/sql

    Gurus,
    I have a custom pl sql application that is web services based. The custom pl sql application invokes the external web services and updates Oracle Field Service application.
    One of the new requirements is to get the signatures from SOAP Attachments (a binary file) and attach it to Field Services transactions in Oracle.
    Does anyone has an example of how to download the SOAP attachment file from web service using pl/sql.
    The pl sql program uses UTL_HTTP to access web services.
    Much Thanx.

    I think you may be in the wrong forum, but anyways...
    What I think your looking for is the htp.print('insert html here'); function. It's plsql, and writes out html to the web server that calls it.
    if you search for htp.print you should find loads of examples.
    hope this helps.
    Merv.

Maybe you are looking for