Save a picture to database using webservice on wls6.1

Hi all,
I want to save employee's picture (the field is blob type in table ) to
database using webservice , the server is weblogic6.1 , how to do it ? Thank
you very much.
Best Regards
lcl

Well, your choices in SOAP are either to encode the picture and stuff it
in the SOAP body as a parameter or use SOAP w/ Attachments and send the
picture along as an attachment.
SOAP w/attachments is not supported until WLS 7.0 so unless you're
willing to upgrade, you'll have to encode the picture and pass it
through as a parameter. Once you're in the EJB, you can do the db insert.
Another option would be to use HTTP to upload the picture and then make
the webservices call to do the update.
-- Rob
lcl wrote:
Hi all,
I want to save employee's picture (the field is blob type in table ) to
database using webservice , the server is weblogic6.1 , how to do it ? Thank
you very much.
Best Regards
lcl

Similar Messages

  • How to save photo in oracle10gee database using developer10g

    I have oracle10g enterprise edition database and developer10g front end.
    i have a table in my database
    desc employee_personnel
    emp_id varchar2(10)
    emp_name varchar2(80)
    emp_pic blob
    I create form using forms10g and now i want to browse that photo using forms10g and want to save it in oracle10gee database.
    and when i will query it next time it will the photo
    how can i do it
    plz help me in detail

    see here
    http://halimdba.blogspot.com/2011/01/how-to-insert-multimedia-data-image.html
    regards
    Halim

  • How save & retrive data from database using flex, coldfusion, sql server

    hi , i am very new in flex, i am trying to insert data in
    database using flex2, coldfusion, sql server. any one can help me
    please. or give me any example.

    Hi try to goto the following sites, you will get some
    direction to think
    http://weblogs.macromedia.com/pent/archives/2006/11/example_of_flex.cfm
    http://pdxphp.org/node/258
    Good Luck

  • How do I save multiple files from database using oracle forms?

    Forms [32 Bit] Version 10.1.2.3.0 (Production)
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    Hello,
    I have a form containing a block of records with files set up in a tabular layout. Each row has a checkbox to indicate if that row is selected. What I want to do is allow the user to save each file from checked rows to a directory of their choice on their machine when a button is pressed. Is it possible to do this in one command at the same time using WEBUTIL_FILE to save all the selected files to the same directory, or would I need to loop through each row and call the save dialog each time?
    Thanks.

    I'm not sure I follow. The SAVE_DIALOG is building the path including the filename where the files will be saved. If I have 5 different files I want to save at the same time and only show the dialog once, I will only have a path for one of the files. How could I loop through the rest afterwards?

  • How to display and save a picture stored as BLOB in MySQL database in Jsp?

    Hello i am doing a dataentry form where in i will display the picture stored as Blob in MySQL database to the browser. The form also allow changing the picture and updating the picture Blob in the database.
    How can i do it? I try this
    <img src'"<%=rs.getBlob("picture")%> but it doesn't display the picture.
    another thing, how can i save it in the database, if is use the file field in the html form?
    thanks in advance for your help.

    Hello i am doing a dataentry form where in i will display the picture stored as Blob in MySQL database to the browser. The form also allow changing the picture and updating the picture Blob in the database.
    How can i do it? I try this
    <img src'"<%=rs.getBlob("picture")%> but it doesn't display the picture.
    another thing, how can i save it in the database, if is use the file field in the html form?
    thanks in advance for your help.

  • How to save a picture file into Microsoft Access Database?

    I want to save a picture file,such example.jpg file into a Microsoft Access Database in JSP,anybody know how to save picture file into Microsoft Access Database and read this picture file from Microsoft Access Database and then show this picture in a JSP page?
    Thanks in advance.

    Not posible in case of Microsoft Access ..
    You will hv to use oracle for that ....
    search for Blob / Clob

  • Saving data in database using textbox and save button

    Hello. I just want a help about my code because when i close the application the data that i add is not been saved.
    Here is my code of save:
    function saveData(event:MouseEvent):void
      status.text = "Saving data";
      insertStmt = new SQLStatement();
      insertStmt.sqlConnection = conn;
      var sql:String = "INSERT INTO employees (firstName, lastName, salary) VALUES (:param, :param1, :param2)";
      insertStmt.text = sql;
      insertStmt.parameters[":param"] = firstName.text;
      insertStmt.parameters[":param1"] = lastName.text;
      insertStmt.parameters[":param2"] = salary.text;
      insertStmt.addEventListener(SQLEvent.RESULT, insertResult);
      insertStmt.addEventListener(SQLErrorEvent.ERROR, insertError);
      insertStmt.execute();
    Here is the full code:
    import fl.data.DataProvider;
    import flash.data.SQLResult;
    import flash.data.SQLConnection;
    import flash.filesystem.File;
    import flash.data.SQLStatement;
    import flash.data.SQLConnection;
    var conn:SQLConnection;
    var createStmt:SQLStatement;
    var insertStmt:SQLStatement;
    var insertStmt2:SQLStatement;
    var insertStmt3:SQLStatement;
    var selectStmt:SQLStatement;
    var insert1Complete:Boolean = false;
    var insert2Complete:Boolean = false;
    saveBtn.addEventListener(MouseEvent.CLICK, saveData);
    loadBtn.addEventListener(MouseEvent.CLICK, getData);
    init();
    function init():void
      conn = new SQLConnection();
      conn.addEventListener(SQLEvent.OPEN, openSuccess);
      conn.addEventListener(SQLErrorEvent.ERROR, openFailure);
      status.text = "Creating and opening database";
      // Use these two lines for an on-disk database
      // but be aware that the second time you run the app you'll get errors from
      // creating duplicate records.
    // var dbFile:File = File.applicationStorageDirectory.resolvePath("DBSample.db");
    // conn.openAsync(dbFile);
      // Use this line for an in-memory database
      conn.openAsync(null);
    function openSuccess(event:SQLEvent):void
      conn.removeEventListener(SQLEvent.OPEN, openSuccess);
      conn.removeEventListener(SQLErrorEvent.ERROR, openFailure);
      createTable();
    function openFailure(event:SQLErrorEvent):void
      conn.removeEventListener(SQLEvent.OPEN, openSuccess);
      conn.removeEventListener(SQLErrorEvent.ERROR, openFailure);
      status.text = "Error opening database";
      trace("event.error.message:", event.error.message);
      trace("event.error.details:", event.error.details);
    function createTable():void
      status.text = "Creating table";
      createStmt = new SQLStatement();
      createStmt.sqlConnection = conn;
      var sql:String = "";
      sql += "CREATE TABLE IF NOT EXISTS employees (";
      sql += " empId INTEGER PRIMARY KEY AUTOINCREMENT,";
      sql += " firstName TEXT,";
      sql += " lastName TEXT,";
      sql += " salary NUMERIC CHECK (salary >= 0) DEFAULT 0";
      sql += ")";
      createStmt.text = sql;
      createStmt.addEventListener(SQLEvent.RESULT, createResult);
      createStmt.addEventListener(SQLErrorEvent.ERROR, createError);
      createStmt.execute();
    function createResult(event:SQLEvent):void
      createStmt.removeEventListener(SQLEvent.RESULT, createResult);
      createStmt.removeEventListener(SQLErrorEvent.ERROR, createError);
      addData();
    function createError(event:SQLErrorEvent):void
      status.text = "Error creating table";
      createStmt.removeEventListener(SQLEvent.RESULT, createResult);
      createStmt.removeEventListener(SQLErrorEvent.ERROR, createError);
      trace("CREATE TABLE error:", event.error);
      trace("event.error.message:", event.error.message);
      trace("event.error.details:", event.error.details);
    function addData():void
      status.text = "Adding data to table";
      insertStmt = new SQLStatement();
      insertStmt.sqlConnection = conn;
      var sql:String = "";
      sql += "INSERT INTO employees (firstName, lastName, salary) ";
      sql += "VALUES ('Bob', 'Smith', 8000)";
      insertStmt.text = sql;
      insertStmt.addEventListener(SQLEvent.RESULT, insertResult);
      insertStmt.addEventListener(SQLErrorEvent.ERROR, insertError);
      insertStmt.execute();
      insertStmt2 = new SQLStatement();
      insertStmt2.sqlConnection = conn;
      var sql2:String = "";
      sql2 += "INSERT INTO employees (firstName, lastName, salary) ";
      sql2 += "VALUES ('John', 'Jones', 8200)";
      insertStmt2.text = sql2;
      insertStmt2.addEventListener(SQLEvent.RESULT, insertResult);
      insertStmt2.addEventListener(SQLErrorEvent.ERROR, insertError);
      insertStmt2.execute();
    function insertResult(event:SQLEvent):void
      var stmt:SQLStatement = event.target as SQLStatement;
      stmt.removeEventListener(SQLEvent.RESULT, insertResult);
      stmt.removeEventListener(SQLErrorEvent.ERROR, insertError);
      if (stmt == insertStmt)
      insert1Complete = true;
      else
      insert2Complete = true;
      if (insert1Complete && insert2Complete)
      status.text = "Ready to load data";
    function insertError(event:SQLErrorEvent):void
      status.text = "Error inserting data";
      insertStmt.removeEventListener(SQLEvent.RESULT, insertResult);
      insertStmt.removeEventListener(SQLErrorEvent.ERROR, insertError);
      trace("INSERT error:", event.error);
      trace("event.error.message:", event.error.message);
      trace("event.error.details:", event.error.details);
    function getData(event:MouseEvent):void
      status.text = "Loading data";
      selectStmt = new SQLStatement();
      selectStmt.sqlConnection = conn;
      var sql:String = "SELECT empId, firstName, lastName, salary FROM employees";
      selectStmt.text = sql;
      selectStmt.addEventListener(SQLEvent.RESULT, selectResult);
      selectStmt.addEventListener(SQLErrorEvent.ERROR, selectError);
      selectStmt.execute();
    function saveData(event:MouseEvent):void
      status.text = "Saving data";
      insertStmt = new SQLStatement();
      insertStmt.sqlConnection = conn;
      var sql:String = "INSERT INTO employees (firstName, lastName, salary) VALUES (:param, :param1, :param2)";
      insertStmt.text = sql;
      insertStmt.parameters[":param"] = firstName.text;
      insertStmt.parameters[":param1"] = lastName.text;
      insertStmt.parameters[":param2"] = salary.text;
      insertStmt.addEventListener(SQLEvent.RESULT, insertResult);
      insertStmt.addEventListener(SQLErrorEvent.ERROR, insertError);
      insertStmt.execute();
    function selectResult(event:SQLEvent):void
      status.text = "Data loaded";
      selectStmt.removeEventListener(SQLEvent.RESULT, selectResult);
      selectStmt.removeEventListener(SQLErrorEvent.ERROR, selectError);
      var result:SQLResult = selectStmt.getResult();
      resultsGrid.dataProvider = new DataProvider(result.data);
    // var numRows:int = result.data.length;
    // for (var i:int = 0; i < numRows; i++)
    // var output:String = "";
    // for (var prop:String in result.data[i])
    // output += prop + ": " + result.data[i][prop] + "; ";
    // trace("row[" + i.toString() + "]\t", output);
    function selectError(event:SQLErrorEvent):void
      status.text = "Error loading data";
      selectStmt.removeEventListener(SQLEvent.RESULT, selectResult);
      selectStmt.removeEventListener(SQLErrorEvent.ERROR, selectError);
      trace("SELECT error:", event.error);
      trace("event.error.message:", event.error.message);
      trace("event.error.details:", event.error.details);

    Your database system may well have a setting for character encoding when creating new databases. If you set that to unicode JDBC should store and retrieve UNICODE strings automatically.
    As to the HTML side, you should generally use UTF-8 encoding. You need an editor which understands UTF-8. JSPs and servlets have ways of specifying the encoding which goes into the http headers. For static HTML pages you may have to add a header like:
    <META http-equiv="Content-type" value="text/HTML; charset=UTF-8">
    When receiving form data you need to do
    request.setCharacterEncoding("UTF-8");

  • How can I save a picture in Photoshop Elements that was emailed to me using Photoshop Elements?

    How can I save a picture in Photoshop Elements that was emailed to me using Photoshop Elements?

    Save the attachment in a folder.
    From the Organizer menu choose:
    File >> Get Photos & Videos >> From Files & Folders
    Navigate to your image and click Open.
      If the photo is embedded, make a copy or screen grab and then whilst it’s still held in memory open the Elements Editor.
    From the menu click:
    File >> New >> Image from clipboard
    Then use File >> Save As
    Then choose jpeg.

  • Ever since I started using icloud I can't save any pictures to my phone. Why?

    Ever since I started using icloud I can't save any pictures to my phone. Why?

        Let's find out what's going on sylfle! Are you able to edit photos when you aren't saving to contacts? When did this start?
    Thank you,
    MichelleH_VZW
    Follow us on Twitter @VZWSupport

  • How to save a picture from Excel

    Who nows as to save to HD a picture from excel. A picture in excel is small. It is necessary to save a picture with the present sizes

    Who nows as to save to HD a picture from excel. Excel?
    A
    picture in excel is small. You mean data size? I doubt you know what you are talking about.
    It is necessary to save a
    picture with the present sizesGood luck with that. I am sure it is embedded as some OLE crap and that's why you think it is small (because the data isn't actually embedded in the sheet).
    But seriously.. good luck... sounds like a real whiz-bang of a project. Lord knows I have often wished to use Excel as a image database ?!?

  • Is it possible to download a mail(.eml) from outlook 365 using exchange service and store in database using c#

    Hi All,
    I have a outlook mail account ex:- my mail account id is
    [email protected] , using c# code and Microsoft.Exchange.WebServices ,
     I want to download entair email and want to save this email in database , is it possible suggest me how can I go forward on this, if not possible please suggest some alternative ways to find the solution.
    the reason want to store this entair mail is  on click on some button I want to open this mail from database in .eml format with attachments if any are there.
    Thank in Advance
    Ravi

    Hello Ravi,
    Try this:
    http://msdn.microsoft.com/en-us/library/office/dn672317(v=exchg.150).aspx#sectionSection2
    With regards,
    Michael | Microsoft Exchange Developer Content
    The
    Exchange Development Forum Guide has useful information for using the Exchange Development Forum.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Save soap message in database

    Hi, i'm new in webservice and xml. I want to save the returned SOAP Message by webservice in the database (xmltype).
    String inputLine;
    String xmlDoc = "";
    URL xml = new URL("http://sph001000-020:7777/i3sWebServices-FireWebService-context-root/FireWebService?invoke=lov_fritmtp");
    InputStream input = xml.openStream();
    BufferedReader in = new BufferedReader(new InputStreamReader(input));
    int cnt = 1;
    while ((inputLine = in.readLine()) != null)
    if (cnt == 1){
    xmlDoc = xmlDoc + inputLine;
    cnt = 0;
    else cnt = 0;
    System.out.println("xml " + xmlDoc);
    in.close();
    here is where i got stuck, can anyone help me save the string xmlDoc in database(xmlType)?
    Thanks in advance!
    Regards,
    Hardy

    Hi,
    I had a similar need to save a SOAP message for later processing, using NetBeans. I used a routine saveSOAPMessage (shown below) to write the SOAP message to a file as XML, and then processed the saved XML file. You might be able to do something like this to save the message in your database.
    Good luck.
    gordonwj
    private boolean saveSOAPMessage(String path, SOAPMessage message)
    boolean isValid = true;
    try
    FileOutputStream foutStr = new FileOutputStream(path);
    message.writeTo(foutStr);
    foutStr.close();
    catch (Exception e)
    String s = e.getMessage();
    errorMessage = "Error writing SOAP message to file " + path;
    isValid = false;
    return(isValid);
    }

  • I can't save my picture to .jpeg in CameraRaw, the only format available is .dng. Why??

    I want to save my pictures to .jpeg in CameraRaw, but the only format available is .dng. I have to open the picture in Elements 12 just to save as .jpeg. Why??

    Because the ACR module is meant to convert the raw data into an image format that the editor can read. From the editor (or the organizer) you can save your raw files to image files formats like jpeg, tiff or psd. Simply click the 'Open in editor' button.
    For batch conversion to jpeg, either use the 'process multiple files' option in the file menu of the editor, or select several raws in the organizer and export to a new location in the desired format.
    The option to 'save' as DNG may be used if you want to convert to the raw DNG format. You don't need to use that feature.
    I highly recommend you take the time to read the help file (Help button in the camera raw dialog).

  • When I had IEXP. I would save a picture from email to My Pictures. With Firefox it doesn't work. Saved pic shows a box w/IEx & no pic.

    When I save a picture from my email to My Pictures the picture doesn't appear. A box appears in My Pictures that shows Internet Explorer (E) and no picture of what I tried to save. The jpeg also wasn't at the bottom drop down box. I could name the picture but it didn't transfer over. I use to have Internet Explorer when the pictures were put into the My Pictures but have now gone to using Firefox. Did changing to Firefox cause me not to be able to use My Pictures for the email pictures I'm trying to save?

    Which method are you using to save the picture? Typically it works to right-click and use Save Image As.
    If that option is not available or does not work, is the image a link (for example a small thumbnail image linked to a larger version)? In that case, you might try Ctrl+clicking the link to open the image in a new tab and see whether you can then save it successfully.

  • How do I save a picture in "Preview" to the desktop?

    Hello,
    Now that I'm using Lion, I'm having to re-learn several things and right now I'm trying to figure out how to save a picture to my desktop when I'm in "Preview". In Snow Leopard, all I had to do was go under the File menu and choose, "Save As". However, in Lion, that feature is gone. Instead, it says: "Save A Version". I have no idea what that means. When I am viewing a photo, if I select "Save A Version", I do not see anything happening. Maybe it is saving my photo somewhere on my computer, but if that is the case, I have no clue where it is being saved. What I want to be able to do is "Save" the photo with a name that I choose to give it (not the default name of the picture as it was emailed to me), and I want to be able to save it to my desktop. In Snow Leopard, choosing "Save As" would bring up a dialogue window where I could accomplish these things. So my question is: How do I do this is Lion?
    Thanks!

    Open your picture in preview then select file>duplicate then go back the file menu and then select save, the save options window will open you can choose to save it to the desktop. 

Maybe you are looking for

  • Oracle 10g  Report Server is Not Starting Up?

    Hi, I have installed Oracle 10g Developer Suite (10.1.2.0.2) and OS is Windows 2003 Server R2 SP2 32-Bit, i have run this Command rwserver server = server name start for starting up my report server,it show error message REP-56105: Engine {0} died wi

  • Cancellation of UD

    HI, Is it possiblt to cancellation of UD on the date of Inspection lot creation date. Regards, Malyadri.

  • Set up validity table for inventory management

    Hi all, somebody know if it is necessary reload the infocube 0IC_C03 every time that change the transfer method with the Tx. RSDV? Thanks in advance. Facundo Romero.

  • Cannot Save File.  File is Locked

    Good morning.  I just downloaded the Cloud CS6 and am working with Fireworks. I saved a PNG file then later went back to modify and now cannot save the file.  I am trying to save as with a png extension but keep getting the message cannot save file. 

  • Material serial number creation

    Hello, I have a scenario in setting up serial number for material. I am presently working on data migration from legacy system to SAP. Materials in legacy system has serial numbers assigned to it. I am migrating service contracts with service materia