Different between upload an image and a XML file??

To uploading an image file then to database, i use the following function:
" .getLoader().setOrdHttpUploadFile "
but if I want to upload an XML file, is it work?? If not, how can I do??

Hi,
You mention the getLoader() method: are you using BC4J? If so, then you have to write the code yourself. BC4J is integrated with the interMedia database object types, and knows how to handle upload requests to these types. If you want to write a simple BLOB or CLOB column, then you can do so, but you have to write the code. See my reply to your other post below.
Simon
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>
Hi,
When you say: 'i find the class of "intermedia" that it is just use to
upload image, audio, or video file.', are you referring to interMedia
Java Classes for Servlets and JSP? If so, you can use these classes to
upload any document to a BLOB column. Simply select the column from
the database (using FOR UPDATE), call the OrdHttpUploadFile.loadLob(
BLOB blob ) method to write the data to the BLOB, then update the BLOB
column in the database. To write an uploaded document to any other
data type, such as a CLOB, you would need to read the data from the
InputStream returned by the OrdHttpUploadFile.getInputStream() method,
then write it to the data type using whatever mechanism is
appropriate, taking in to account such things as character set
conversion.
Hope that helps,
Simon
<HR></BLOCKQUOTE>
null

Similar Messages

  • Different between cisco NAC agent and cisco Clean Access Agent

    Hi all,
    if anyone has idea about different between cisco NAC agent and cisco Clean Access Agent, please share your ideas.
    thank you

    In 4.6, the agent was overhauled and is now called the NAC agent.  Previous versions were referred to as the Clean Access Agent.  So pretty much, the 4.5 agent and 4.1.3.2 agents are Clean Access agents, and the 4.6.x and 4.7.x agents are called NAC agents.
    Some of the changes made were moving a lot of the agent configuration to an XML file, redesigning the GUI, adding a service portion (so that the stub agent is no longer required), and better agent logging.

  • Exchange rate is different between records in OB08 and records in document.

    Hi Gurus,
    The exchange rate is different between records in OB08 and records in calculated amount in line item. How does it happen? Not all of the documents in the same period has this problem.
    For example, a document A created by FB05 on Jun 30 2010.
    In OB08, the exchange rate is 6.80000. This rate was the same in the header of document A.
    In the line item of doc A, I calculated the amount for line itme 1 and 2. Line itme 1 shows the exchange rate is 7.90000. Line item 2 shows the exchange rate is 16.0000. ( The exchange rate is not that exactly an interger. I put a similar exchange rate as an example.)
    Could you please throw some light on these? Why some documents are okay but for some, the exchange rate is so different?
    I just found that the exchange rate of some of the document line item calculated is from another currency. It shows in the line item (in question) button "More Data". Shall I know how the exchange rate was got from another currency exchange rate?
    Thank you.
    Emma
    Edited by: qun yang on Aug 2, 2010 10:49 AM

    Issue solved by below solution:
    Existing:
          append lines of vit_final to s_s_if-maxsize to e_t_data.
          delete vit_final to s_s_if-maxsize.
        else.
          append lines of vit_final to s_s_if-maxsize to e_t_data.
          delete vit_final to s_s_if-maxsize.
    New:
          append lines of vit_final to e_t_data.
          delete vit_final to s_s_if-maxsize.
        else.
          append lines of vit_final to e_t_data.
          delete vit_final to s_s_if-maxsize.

  • What is the different between payment methods Wire and EFT

    Hi All
    can anybody tell me What is the different between payment methods Wire and EFT ?
    Regards ;

    WIRE:
    Wire is transfer of amount due directly to the supplier's bank it is an electronic transfer of funds
    This mode of payment is used for international suppliers.
    It can be paid in foreign currency or USD.
    Wire payments are same day payments.
    EFT:
    EFT ensures funds transfer from one bank account to another using electronic links.
    Can be used to make payments into domestic banks (within US) in USD only.
    It is faster than check payments.
    Hope this helps.

  • How to upload the image and diplay the image in the browser using jsp

    How to upload the image and diplay the image in the browser using jsp
    thanks
    shan

    i'll suggest looking for sample code or tutorial with a relevant query in google, which as far more time than us to answer this type of reccurent question

  • I want to embed text AND image from same XML file

    Hey,
    I got following problem:
    I want to put 1 image AND my text in 1 external XML file.
    I can load either one of them in seperate XML files.
    I need this because I want my content to be scrollable on my website and with this my image has to scroll with my text.
    I got following AS3 put in now:
    (ACTIONSCRIPT3.0)
    //LOADING EXTERNAL XML & IMAGE//
    var xml:XML;
    var urlRequest:URLRequest = new URLRequest("externaltext/welkom_content.xml");
    var urlLoader:URLLoader = new URLLoader();
    urlLoader.dataFormat = URLLoaderDataFormat.TEXT;
    urlLoader.addEventListener(Event.COMPLETE, urlLoader_complete);
    urlLoader.load(urlRequest);
    function urlLoader_complete(evt:Event):void {
        xml = new XML(evt.target.data);
        welkom_content_text.text = xml.toXMLString();
    //LOADING EXTERNAL PICTURES//
    var xmlData:XML=new XML();
    var pHeight:Number = 200;
    var pWidth:Number = 200;
    var listLoader:URLLoader = new URLLoader( new URLRequest("externaltext/testxmlimage.xml") );
    var picLoader:Loader = new Loader();
    listLoader.addEventListener(Event.COMPLETE, gotList);
    function gotList(evt:Event):void {
       var xmlData:XML = XML(listLoader.data);
       var numImages:Number = xmlData.pix.length();
       var stImage:String = xmlData.image
    picLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, gotPic);
    picLoader.load( new URLRequest(stImage) );
    listLoader.removeEventListener(Event.COMPLETE, gotList);
    function gotPic(evt:Event):void {
    var thisBmp:Bitmap = Bitmap(evt.target.content);
    thisBmp.x = 0;
    thisBmp.y = 0;
    var thisWidth:Number = thisBmp.width;
    var thisHeight:Number = thisBmp.height;
    thisBmp.scaleX = pWidth/thisWidth;
    thisBmp.scaleY = pHeight/thisHeight;
    addChild(thisBmp);
    picLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, gotPic);
    (/ACTIONSCRIPT3.0)
    And my XML file for the text content is as following:
    (XML TEXT FILE)
    <?xml version="1.0" encoding="utf-8"?>
    .... ALL OF MY CONTENT
    (/XML TEXT FILE)
    And for my image the XML file is as following:
    (XML IMAGE FILE)
    <?xml version="1.0" encoding="utf-8"?>
    <imagelist>
    <image>externaltext/testpicxml.jpg</image>
    </imagelist>
    (/XML IMAGE FILE)
    Does anyone know how to fix this and how to do it?
    Thanks in advance!
    Every help is appreciated!

    Thanks!
    And again... I'm doing some things wrong.. I feel dumb!
    Trying to make a website in ASP.NET almost whole day, so my head isn't set to AS3 at all..
    My code now to embed XML looks like:
    var xml:XML = new XML();
    var XMLURL:String = "externaltext/welkom_content_pic.xml";
    var myXMLURL:URLRequest = new URLRequest(XMLURL);
    var myLoader:URLLoader = new URLLoader(myXMLURL);
    var page:Sprite = new Sprite();
    myLoader.addEventListener("complete", urlLoader_complete);
    function urlLoader_complete(evt:Event):void {  
    addChild( page );
    page.addChild( welkom_title_text );
    page.addChild(  welkom_content_text );
    page.addChild(  welkom_image_holder );
    xml = new XML(evt.target.data);   
    welkom_title_text.text = [email protected]();   
    welkom_content_text.text = xml.item.toString();       
    //use URLLoader to load the image from the path [email protected]()
    Probably set some things wrong..
    And what exactly do I have to set to load my image with it?
    We were all a beginner once.. but I'm the uber annoying beginner I think... hehe
    I probably won't be answering untill thursday, because I got a day off, so..
    Thanks!!!!!!!!!!!!!!!!

  • Different Between KT4V ver1.0 and KT4V v10A

    Hi guys, when i just bought a new MSI KT4V from a shop, it was version 1.0, but 3 month later i send for warrantty claim, they return the board to me (I think they  replace the board, but i dun think it was a new board, it was a used board), but it was KT4V Ver10A, i bought this board at Malaysia, do anybody know about it ?? Can let me know what is the different between Version 1.0 and 10A ????  ?(
    In my mind, i think maybe is KT4V Ver 2.0  :D
    I got send mail to MSI official site, but sadly it auto reply by the machine, do anybody know how to send a mail to technical support which will reply and give a solution for you problem ???

    The cpu temp looks to be slightly high for an idle temp.  Could be caused by too much thermal grease or poor airflow through the case, even by high ambient temps in the room where the system is located.  These temps are normally measured in centigrade and should not exceed 43 degrees to 45 degrees at idle.  Yours appear to be about 50 degrees.

  • Is any different between ECC 5.0 and ECC 6.0 for Excel export?

    Dear all,
    As you know, most standard SAP report allow Excel export. I just wonder is any different between ECC 5.0 and ECC 6.0 for excel report in standard SAP reports?
    In ECC 5.0, Reports in profit center accounting, LIS, or PA, etc. has their own different way to export to excel and is any improvement in ECC 6.0? I Thanks.

    In ECC 5.0, a lot of reports don't have Excel export function instead user has to go to system -> List -> Save -> Local file -> spreadsheet.
    I just wonder is any improvement in ECC 6.0? just like LIS report, user can select export -> Transfer XXL to either pivot table or just plain excel but the function only exist in certain reports in some modules and not all.
    Thanks again.

  • I need to select and upload a image and corresponding url from an external website using file upload control in MVC4. Please help

    I need to select and upload a image and corresponding  url from an external website using file upload control in MVC4.
    Please help
    Latheesh K Contact No:+91-9747369936

    This forum supports .NET Framework setup.
    As your issue appears to have nothing to do with .NET Framework setup, please ask in the MVC forums for best support.
    http://forums.asp.net/1146.aspx/1?MVC

  • Different between work order closed and completed

    HI experts
    I would like to know what is different between closed work order and completed on SAP PM Module.
    regards
    nasser

    See this conversation:Completed is technical comptete (TECO) - the technician has done his/her work, closed is settled and done also from an accounting perspective (settlement)
    PM Work Order TECO and CLSD
    http://scn.sap.com/thread/3158261

  • Getting rid of gap  between title banner image  and Spry Menu bar?

    Hi,
    Here's what I have so far :
    http://www.artbywaqas.com/TEST/index.html
    How can I get rid of the gap between the banner image and the menu below it?

    Please explain, what is the center element as in line 43 with the closing tag on line 94?
    Also, wrapping the banner image in a paragraph element ensures that you will have a margin and/or padding above and below the element unless you specifically change the style rules to eleminate the marging and/or padding.
    The quickest solution is to remove the center element (which does not exist) and change the paragraph elemnt to a div element.
    Gramps

  • Bridge between a relational DB and an XML based DB

    Hi:
    Iam implementing a repository which acts as a bridge between a relational db and an xml db, has any work already been done in this area ?

    It seems to me you have 3 choices...
    1. Re-invent the wheel from the ground up. Having been involved in both iFS and XML DB I can only comment that creating an repository on top of relational data is a non-trivial task, even when you have access to the database source code....
    2. Abandon database independance and create a solution that leverages the features of Oracle XML DB. This will give you the quickest time to market.
    3. Consider creating a facade over the Oracle XML DB resource API. Your facade would hand processing off to Oracle XML DB when the underlying database was 9iR2. In the case of earlier or non oracle databases you would need to implement more of the logic in the application layer.

  • What different between ADF Rich Portlet and Trinidad HTML Portlet?

    Hi all,
    I've some question about adding portlet to portal pages
    What different between ADF Rich Portlet and Trinidaf HTML Portlet?
    And benifit of each?
    Regards

    Hi all,
    I've some question about adding portlet to portal pages
    What different between ADF Rich Portlet and Trinidaf HTML Portlet?
    And benifit of each?
    Regards

  • Re: What is the different between the NB550D-109 and the NB550D-10G?

    Hello Guys . I need some help about the NB550D. What is the different between the NB550D-109 and the NB550D-10G?? Is just the colour?

    I've checked local and internet shops - strange thing - now, a month after they've started to sell NB550D, in my country (Poland) you can buy only 10J model (with C30) - only green! But the price changed from 1299 to 1199 :)
    And 10G model (blue with C50) disappeared - sold out!!!???

  • What is the different between Oracle Process Manuf and Oracle Discrete Manufatur in oracle?

    Dear What is the different between Oracle Process Manufacturing and Oracle Descret Manufacturing in Oracle?

    Hi Elad,
       Depending on the requirement and the availability we go with implementing a particular database.
    For xi point of view there is no difference between oracle and SQL database. However you need to intall the drivers of SQL.
    Even there is no difference in the communication channel configuration.
    Reward points if found helpful.
    Thanks & Regards,
    Bharath.

Maybe you are looking for