How to decode the received imagePath getPicture method in Oracle MAF?

Hi all

I have a use case in which I have to perform following tasks:

1. take a picture using the MAF.

2. save the encoded image in sqlite database path.

3. then decode this path of the image and then convert the image to a byte [], so that I can send it to Oracle MCS storage.

I put the parameter encodingType getPicture on "1". I'm stuck at the point where I have to decode the image path returned by the getPicture method.

How can I do so?

Kind regards

Gurkeerat Singh

Hello

Thanks for repIy. I used the following code and it worked.

Byte [] imageData = Base64.decodeBase64 (insertSR.getSrAttachment () .getAttachmentPath () .substring (contentStartIndex));

and added a jar "Commons-Codec - 1.9.jar.

Kind regards

Gurkeerat Singh

Tags: Oracle Mobile

Similar Questions

  • How to remove the list item empty forms of oracle?

    Hello

    How to remove the list item EMPTY forms of oracle?

    I create two list items

    (1) basic

    (2) advanced

    But when I select list or display the runtime display form element 3 element EMPTY automatically, but I add what it shows I want to delete! How?

    He has named REQUIRED = NO item property

    If you set YES and then it does not show. but you must give an initial value.

    Hamid

  • How to count the number of columns in an oracle table using sql

    How to count the number of columns in an oracle table using sql

    You must put the name of the table in capital letters

    As

    SELECT COUNT(1)
      FROM user_tab_columns
    WHERE table_name = 'EMP';
    
    or
    
    SELECT COUNT(1)
      FROM user_tab_columns
    WHERE table_name = UPPER('Emp');
    

    Concerning
    Arun

  • How to transform the received data from the file adapter

    Hi '.

    I read the data in the XML file using the file adapter, now I want to write the same content I read from this file to a different/new XML file, the problem is that I'm unable to perform a transformation here, when I use a transformation with source element as the output of the reading of file and the target as input in the new file it writes an empty file ,
    I checked the audit trail that showsme that the transformation is empty.
    Please tell me how I transform the item I received a file to make them as input to the next file

    Thank you
    Yatan

    You can post your Transformation_3.xsl, I would also like to see the result of the receipt of the readfile.

    I'm not convinced that this XML is correct. I don't expect to see the element xsd: Schema.

    see you soon
    James

  • How to decode the Last_Date_ field visited in the places.sqlite db?

    I opened the places.sqlite file in Firefox SQLite Manager plug-in. I can see the field of Last_Date_Visited and it's a very large integer. I must be able to decode the date and time out of the field for a matter of human resources. Thank you

    Try to use this time converter.

    http://www.esqsoft.com/javascript_examples/date-to-epoch.htm

    Put this whole in Option 2 and hit so far

  • HOW TO DECODE THE EDB FILES

    I bought a new computer that has Wiindows 7. My old computer has Windows XP and went on the fritz, so I'm having trouble getting my out of my old backup e-mail addresses. Any extra help will be appreciated.

    It seems that the OP made refers to the files of ESENT database such as those used to store the Windows Live Contacts (and the index of Windows and other bits and pieces). The problem with the backup of these is that the database consists of a main file, in this case contacts.edb, as well as several files of aid which are essential to be able to "decode" the data that contains the primary file. Some of the support cases may be in a subdirectory. Some of them have the .log extension, because they connect the transactions as they happen. These transactions will be in normal circumstances finally written to the main file. Many backup programs ignore the default .log, same and.chk of .tmp files, which are sometimes used to refer to the essential help for an ESENT database files.

    Woanware has produced a free viewer of database ESE who should be able to extract the data of a complete contacts database if all its help files are present. Another geekier is under development onCodeplex.

    Noel

  • How to extract the metadata for an object in Oracle 7.3.4.3.0

    Hi all

    The Prod database is on Oracle 7, 7.3.4.3.0 with the 64 bit version.

    I need to get the code used in the procedure, functions, packages and triggers in the database, to reproduce the problems in Oracle 10 g.

    I know that dbms_metadata.get_ddl () is used to get the metadata. However, it is not available in Oracle7. Then couldn't a Tips how to get the metadata in Oracle 7.

    Thank you

    The code should be ALL_SOURCE or the SYS. Table of $ SOURCE.

    Refer to the Oracle data dictionary views 7 server reference chapter
    http://docs.Oracle.com/CD/A57673_01/doc/Server/doc/SRF73/CH2A.htm#toc018

    Here's the main doc link if you need it.
    http://docs.Oracle.com/CD/A57673_01/index.htm

  • How to use the concepts Advanced PL/SQL in oracle reports and forms

    Hi all

    Can anyone suggest me how to use the Concepts(nested tables,PAA,Varrays,Objects...) Advanced PL/SQL in Oracle forms.

    In fact, I created a Table whose column of type Varray. now, I want to create an element in oracle forms on this field. can anyone suggest me how to proceed.

    Thank you
    Kumar

    Hello

    Take a look at this one:
    http://SheikYerbouti.developpez.com/tutoforms10g/tutoforms10g.htm
    especially the chapter on the block that contains a collection of (2.3.3). The sample is built around a nested table, but you get the idea to adapt to work with a varray.

    Kind regards
    Alex

    If someone useful or appropriate please mark accordingly.

  • How to import the selected tables from MySQL to Oracle

    Hello world:

    How can I import tables from MySQL to Oracle? I have more than 180 tables in my DB (MySQL), but I copy only 12 of them to ORACLE... rigth now I do it manually, using SQL Developer (rigth clicking on the picture icon and copy to Oracle) but now I need to do this automatically every 4 hours...

    I read on the dblink option, but I don't know if this is the best for this case...

    I appreciate all help.

    Best regards
    Jack

    Hi Jack,

    I think that with a db-link you can define an automated task (PL/SQL + programmer).
    We use a db-link to Oracle's RDBMS to MySQL. So we have no experience.
    We have created the db-link like http://www.pythian.com/news/1554/how-to-access-mysql-from-oracle-with-odbc-and-sql/

    Heike cordially

  • How to use the Teststand API DisplayEditNumericFormatDialog method

    Hello

    I have to create a report for Teststand coustom generator plugin using c#. In the Teststand API is a built-in method called 'DisplayEditNumericFormatDialog '.

    http://zone.NI.com/reference/en-XX/help/370052M-01/tsapiref/reftopics/propertyobject_displayeditnume...

    Is there a way to set the value of the sample of the window that appears if the method is called?

    I do the following things:

    private void button1_Click (object sender, EventArgs e)
    {
    mChanged = true;
    bool tempbool;

    PropertyObject tempobject = mEngine.NewPropertyObject (PropertyValueTypes.PropValType_Number, false, "", 0); creates a temporary PropertyOgject to view the EditNumericFormatWindow

    tempobject. NumericFormat = mConfig.GetValString (P_PluginSpecific_Options_NumericFormat, 0); read the digital format of the plugin options
    tempobject. DisplayEditNumericFormatDialog ("Digital Format", out (tempbool), 1); View the EditNimericFormatWindow

    If (tempobject. NumericFormat == "") mConfig.SetValString (P_PluginSpecific_Options_NumericFormat, 0, "%$.13g");
    else mConfig.SetValString (P_PluginSpecific_Options_NumericFormat, 0, tempobject.) NumericFormat);

    MessageBox.Show (tempobject. NumericFormat.ToString ());
    }

    Thanks in advance

    Hello f4bo,

    attached is a sequence that shows how this can be done.

    Locals.Local = RunState.Engine.NewPropertyObject (PropValType_Number, False, "", 0x1),.
    Locals.Local.AsPropertyObject.NumericFormat = "%b"
    Locals.Local.AsPropertyObject.SetValNumber ("", 0, 20),.
    Locals.Local.AsPropertyObject.DisplayEditNumericFormatDialog ("false title", False, 0)

  • How to replace the receiver for a mouse (1000) wireless

    original title: wireless mouse (1000)

    I lost my wireless mouse receiver (1000). Is it possible to get another receiver?

    Hi Maury,

    Thanks for posting your query in Microsoft Community and we give the opportunity to help you.

    I suggest you to follow the steps in the article mentioned below and check.

    How to replace Microsoft software or hardware, order service packs and replace product manuals

    http://support.Microsoft.com/kb/326246

    You can also contact technical support for Microsoft Hardware for help on the issue:

    Microsoft Hardware support

    http://www.Microsoft.com/hardware/en-us/support

    Hope this information helps. For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you.

  • How to call the paint of another method program

    Hello

    I have a custom BitmapField that I would like to drawText, using graphics.drawText. Previously, I had no problem, that I would call setBitmap to the paint method and it would make the drawText. However, he did an infinite loop problem, so I moved it to another function, that will affect the value manually the bmp. Now, I am unable to drawText, that I placed this code in my service object. I would, however, when I select this particular BitmapField to drawText.

    For now, since another function setBitmap is not a very good option because this will call the FieldManager sublayout which I think can be a battery problem. Is there another way I can call drawText?

    What is the reason, once again, to not draw the text from inside her object?  Why must you to setBitmap() to draw the text in the first place?

    Indeed, setBitmap() inside of object causes an infinite loop (I remember this post).  However, it should not be linked to draw text in any way, nature or form.

    Check some (members) variable inside your method object and make the draw you need based on this value.  If you want your bitmapField to draw text under certain conditions, change the value of this member and invalidate(), causing object pick up the change.

    In addition, if your FieldManager sublayout a problem, there are a problem.  Look at this code and fix the bugs rather than them with all kinds of mobile code around masking.

    If you need more assistance, please post here the pieces of code (especially how you would draw the text when it worked) and we'll figure out something.

  • How to call the taskflow or bean method after returning from operational-stream-call activity.

    I use JDev 11.1.2.4.0.

    Here is my scenario:

    A page contains a table with a button 'Add' called a popup.  The popup has controls to select data and save/Cancel buttons.  The Save button calls a managed bean method will add a line to the iterator in the table is built on.  I'd like the table to refresh the closure of the pop-up window.

    This is how I implemented it:

    I have taskflow1 that contains an activity view (page1).  Page 1, I have a button that calls managedBean1.method1 () who does a job and returns a result of 'showpopup '.  ShowPopup goes to a task-flows-call activity, called taskflow2.  Taskflow2 has a point of view (page 2, which is presented as a popup) activity and a return.   I want to call a method in managedBean1 to refresh the table once the popup is closed and I can't understand the right way to do it.

    After writing this I wonder if I should create the popup in the calling page rather than creating a separate workflow.  I started with a separate workflow because the popup is a quite complex.

    Thanks for help.

    Rudy

    Add a listener to return the button 'Add '. It will be called by ADF Faces upon return of the taskflow. For example:

    useWindow = "true" windowWidth = "600" windowHeight = "400".

    action = "#{MyBean.Method1} '"

    returnListener = "#{MyBean.myReturnListener}" / >

    And the bean method:

    public void myReturnListener (ReturnEvent returnEvent)

    {

    Do something, for example to update the table on the screen

    AdfFacesContext.getCurrentInstance () .addPartialTarget (myTable);

    }

    NB. don't forget to mark the taskflow call activity to 'run as dialog '.

    If you need the taskflow return result, you can get it in the earpiece to return via the method ReturnEvent.getReturnValue ().

    Dimitar

  • How to decode the error?

    Hi all

    can decode us the error code? That is, how can we know what kind of error occurred from error code.

    I guess, it would be possible. If anyone knows it please share.

    Thank you

    Try this:

    long errorCode;

    unsigned char byteArray [4];

    convert an unsigned long int to an array of 4-byte

    byteArray [0] = (int) ((errorCode >> 24) & 0xFF);

    byteArray [1] = (int) ((errorCode >> 16) & 0xFF);

    byteArray [2] = (int) ((errorCode >> 8) & 0XFF);)

    byteArray [3] = (int) ((errorCode & 0XFF));

  • How to identify the App created planing method

    Hello

    Can someone say how do we identify the method which has been built in an existing planning application (Version 9.3)? (EPMA or classic)

    Hello

    A quick test is to log in as an administrator planning, go to administration > dimensions > if you cannot change a member then it is EPMA, if you can that's classic.
    Or connect to the EPMA, check if you see if you can see the application of planning for the application.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

Maybe you are looking for