Read Video data from buffer or byte array

Hi guys,
I've developed a tx/rx module, the tx read an mpg file and transfer it over network. rx has the data in a byte array, I also feed the byte array to a media buffer. Now my question is how to creat the player and feed the player to play the content of the buffer or byte array?
I would really appreaciate if someone could help me please...
Thanx
I haven't and didn't want to use any of the RTP stuff...

Hi, I tried PullBufferDataSource. What I am trying to do is : read a .wav file into a queue, then construct a datasource with this queue. The processor will be contructed to process the datasource, and a datasink to sink data to a file. I think if this workflow could work, it should work in network transmission.
In fact the code works partially. The trick part is the read( Buffer ) method. If I try to use 'if' statement to see if Queue has empty or not, the datasink could not format the head part of output file correctly. If I didnot use 'if' statement, the program will terminate when exception occurs. The output file is all right.
I did not understand what is going on.
Note: the original file is a RAW data file without format info.
Here is the code fragments. Hopefully we can work together to figure it out.
Thanks.
Jim
* QueueDataSourceTester.java
* Created on November 11, 2002, 10:29 AM
package bonephone;
import javax.media.*;
import javax.media.control.*;
import javax.media.protocol.*;
import javax.media.datasink.*;
import javax.media.format.AudioFormat;
import java.util.LinkedList;
import java.io.*;
* @author wguo
public class QueueDataSourceTester implements ControllerListener, DataSinkListener {
protected LinkedList myQueue;
/** Creates a new instance of QueueDataSourceTester */
public QueueDataSourceTester() {
myQueue = new LinkedList();
public void testIt( ){
// Read a file into a Queue
FileInputStream inputStream = null;
try{
inputStream = new FileInputStream( "c:/media/phone.wav");
catch( IOException ioe ){
System.err.println( "Error on open media file." );
try{
byte data[] = new byte[1024];
int n ;
while( ( n = inputStream.read( data, 0, 1024 )) != -1 ){
myQueue.addLast( data );
data = new byte[1024];
inputStream.close();
catch( IOException ioe ){
System.err.println( "Error on reading file." );
System.out.println( "Queue Size: " + myQueue.size() );
System.out.println( "myQueue = " + myQueue.size() );
QueueDataSource dataSource = new QueueDataSource( myQueue );
Processor p = null ;
try{
System.out.println( "Create processor for QueueDataSource ... " );
p = Manager.createProcessor( dataSource );
catch( Exception e ){
System.err.println( "Cannot create a processor for the QueueDataSource. " );
System.out.println( "\nProcessor is created." );
p.addControllerListener( this );
p.configure();
if( !waitForState( p, p.Configured ) ) {
System.err.println( "Failed to configure the processor." );
System.out.println( "\nProcessor is configured") ;
// p.setContentDescriptor( new ContentDescriptor( ContentDescriptor.RAW ) );
p.setContentDescriptor( new ContentDescriptor( FileTypeDescriptor.WAVE ) );
TrackControl tcs[] = p.getTrackControls();
Format f[] = tcs[0].getSupportedFormats();
if( f == null || f.length == 0 ){
System.err.println( "The mux does not support the input format : "+ tcs[0].getFormat() );
tcs[0].setFormat(
new AudioFormat( AudioFormat.ULAW,
8000,
8,
1,
Format.NOT_SPECIFIED,
AudioFormat.SIGNED,
8,
Format.NOT_SPECIFIED,
Format.byteArray ) );
//System.out.println( "Setting the track format to: " + f[4] );
p.realize();
if( !waitForState( p, p.Realized )){
System.err.println( "Failed to realize the processor" );
DataSink dsink;
MediaLocator outML = new MediaLocator("file:/c:/media/queue.wav" );
if( (dsink = createDataSink( p, outML )) == null ){
System.err.println( "Failed to create a datasink for given " +
"mediaLocator : " + outML );
dsink.addDataSinkListener( this );
System.out.println( "\nProcessor is realized" );
try{
p.start();
dsink.start();
catch( IOException ioe ){
System.err.println( "IO error during processing." );
waitForFileDone();
try{
dsink.close();
catch( Exception e ){
p.removeControllerListener( this );
System.err.println( "... done processing." );
DataSink createDataSink( Processor p, MediaLocator outML ){
DataSource ds ;
if( ( ds = p.getDataOutput() ) == null ) {
System.err.println( "Something is really wrong: the processor does" +
" not have an output DataSource. " );
return null;
System.out.println( "DataOutput: " + ds.getContentType() );
DataSink dsink;
try{
System.out.println( "- create DataSink for : " + outML );
dsink = Manager.createDataSink( ds, outML );
dsink.open();
catch( Exception e ){
System.err.println( "Cannot create the DataSink: " + e );
return null;
return dsink;
Object waitSync = new Object();
boolean stateTransitionOK = true;
boolean waitForState( Processor p, int state ){
synchronized( waitSync ){
try{
while( p.getState() < state && stateTransitionOK )
waitSync.wait();
catch( Exception e ){
return stateTransitionOK;
public void controllerUpdate(javax.media.ControllerEvent controllerEvent) {
if( controllerEvent instanceof ConfigureCompleteEvent ||
controllerEvent instanceof RealizeCompleteEvent ||
controllerEvent instanceof PrefetchCompleteEvent ){
synchronized( waitSync ){
stateTransitionOK = true;
waitSync.notifyAll();
} else if( controllerEvent instanceof ResourceUnavailableEvent ){
synchronized( waitSync ){
stateTransitionOK = false;
waitSync.notifyAll( );
public static void main( String args[] ){
QueueDataSourceTester tester = new QueueDataSourceTester();
tester.testIt();
Object waitFileSync = new Object();
boolean fileDone = false;
boolean fileSuccess = true;
boolean waitForFileDone(){
synchronized( waitFileSync ){
try{
waitFileSync.wait( 5000 );
catch( Exception e ){
System.err.println( "Error on waiting file to be done" );
return fileSuccess;
public void dataSinkUpdate(javax.media.datasink.DataSinkEvent dataSinkEvent) {
if( dataSinkEvent instanceof EndOfStreamEvent ){
synchronized( waitFileSync ){
fileDone = true;
waitFileSync.notifyAll();
else if ( dataSinkEvent instanceof DataSinkErrorEvent ){
synchronized( waitFileSync ){
fileDone = true;
fileSuccess = false;
waitFileSync.notifyAll();
// Inner Class
* A datasource that will read Media data from Queue.
* Inside queue individual RAW data packats are stored.
* @author wguo
public class QueueDataSource extends PullBufferDataSource{
protected QueueSourceStream streams[];
/** Creates a new instance of QueueDataSource */
public QueueDataSource( LinkedList source ) {
printDebug( "QueueDataSource: QueueDataSource( LinkedList) " );
streams = new QueueSourceStream[1];
streams[0] = new QueueSourceStream( source );
public void connect() throws java.io.IOException {
printDebug( "QueueDataSource: connect() " );
public void disconnect() {
printDebug( "QueueDataSource: disconnect()" );
public String getContentType() {
return ContentDescriptor.RAW;
public Object getControl(String str) {
printDebug( "QueueDataSource: getControl(String) " );
return null;
public Object[] getControls() {
printDebug( "QueueDataSource: getControls() " );
return new Object[0];
public javax.media.Time getDuration() {
return DURATION_UNKNOWN;
public javax.media.protocol.PullBufferStream[] getStreams() {
printDebug( "QueueDataSource: getStreams() " );
return streams;
public void start() throws java.io.IOException {
printDebug( "QueueDataSource:start()" );
public void stop() throws java.io.IOException {
printDebug( "QueueDataSource: stop() " );
private void printDebug( String methodInfo ){
System.out.println( methodInfo + " is called" );
// Inner Class
public class QueueSourceStream implements PullBufferStream{
LinkedList sourceQueue;
AudioFormat audioFormat;
boolean ended = false;
/** Creates a new instance of QueueSourceStream */
public QueueSourceStream( LinkedList sourceQueue ) {
printDebug( "QueueSourceStream: QueueSourceStream( LinkedList )" );
this.sourceQueue = sourceQueue;
audioFormat = new AudioFormat(
AudioFormat.ULAW,
8000,
8,
1,
Format.NOT_SPECIFIED,
AudioFormat.SIGNED,
8,
Format.NOT_SPECIFIED,
Format.byteArray);
public boolean endOfStream() {
printDebug( "QueueSourceStream: endOfStream()" );
return ended;
public javax.media.protocol.ContentDescriptor getContentDescriptor() {
printDebug( "QueueSourceStream: getContentDescriptor()" );
return new ContentDescriptor( ContentDescriptor.RAW) ;
public long getContentLength() {
printDebug( "QueueSourceStream:getContentLength()" );
return 0;
public Object getControl(String str) {
printDebug( "QueueSourceStream:getControl( String) " );
return null;
public Object[] getControls() {
printDebug( "QueueSourceStream:getControls()" );
return new Object[0];
public javax.media.Format getFormat() {
printDebug( "QueueSourceStream:getFormat()" );
return audioFormat;
public void read(javax.media.Buffer buffer) throws java.io.IOException {
buffer.setData( (byte[])sourceQueue.removeFirst() );
buffer.setOffset( 0 );
buffer.setLength( 1024 );
buffer.setFormat( audioFormat );
printDebug( "QueueSourceStream: read( Buffer ) " );
else {
buffer.setEOM( true );
buffer.setOffset( 0 );
buffer.setLength( 0 );
ended = true;
System.out.println( "Done reading byte array" );
return;
public boolean willReadBlock() {
printDebug( "QueueSourceStream: willReadBlock()" );
if( myQueue.isEmpty() )
return true;
else
return false;
private void printDebug( String methodInfo ){
System.out.println( methodInfo + " is called. " );

Similar Messages

  • Reading Data from Buffer

    Hi all,
           I have a custom RFC which makes use of IDOC_INPUT_BOMMAT to create a BOM.But the BOM is not yet committed and i need to retrieve this data.If i put a break-point after the call to the FM IDOC_INPUT_BOMMAT and at the same time check the database table it's not yet present in the table.We tried all methods but could not succeed.Please let us know if the data can be read through buffers.If so which FM should i use to get this data .. ?
    Cheers
    Nishanth

    Hi,
    I don't think you will be able to read the data from buffer. Even if you can find it, getting the right strcutures for the data you are looking for will be very tedious.
    Regards,
    Ravi
    Note :Please mark the helpful answers

  • I have a VI and an attched .txt data file. Now I want to read the data from the .txt file and display it as an array in the front panel. But the result is not right. Any help?

    I have a VI and an attched .txt data file. Now I want to read the data from the .txt file and display it as an array in the front panel. But the result is not right. Any help?
    Attachments:
    try2.txt ‏2 KB
    read_array.vi ‏21 KB

    The problem is in the delimiters in your text file. By default, Read From Spreadsheet File.vi expects a tab delimited file. You can specify a delimiter (like a space), but Read From Spreadsheet File.vi has a problem with repeated delimiters: if you specify a single space as a delimiter and Read From Spreadsheet File.vi finds two spaces back-to-back, it stops reading that line. Your file (as I got it from your earlier post) is delimited by 4 spaces.
    Here are some of your choices to fix your problem.
    1. Change the source file to a tab delimited file. Your VI will then run as is.
    2. Change the source file to be delimited by a single space (rather than 4), then wire a string constant containing one space to the delimiter input of Read From Spreadsheet File.vi.
    3. Wire a string constant containing 4 spaces to the delimiter input of Read From Spreadsheet File.vi. Then your text file will run as is.
    Depending on where your text file comes from (see more comments below), I'd vote for choice 1: a tab delimited text file. It's the most common text output of spreadsheet programs.
    Comments for choices 1 and 2: Where does the text file come from? Is it automatically generated or manually generated? Will it be generated multiple times or just once? If it's manually generated or generated just once, you can use any text editor to change 4 spaces to a tab or to a single space. Note: if you want to change it to a tab delimited file, you can't enter a tab directly into a box in the search & replace dialog of many programs like notepad, but you can do a cut and paste. Before you start your search and replace (just in the text window of the editor), press tab. A tab character will be entered. Press Shift-LeftArrow (not Backspace) to highlight the tab character. Press Ctrl-X to cut the tab character. Start your search and replace (Ctrl-H in notepad in Windows 2000). Click into the Find What box. Enter four spaces. Click into the Replace With box. Press Ctrl-V to paste the tab character. And another thing: older versions of notepad don't have search and replace. Use any editor or word processor that does.

  • Read CRM Business Partner Classification data from buffer/memory

    Hi,
    Can anybody help me to read CRM Business Partner Classification data from buffer/memory ? I have a Z- function module in BDT but inside that, I am not able to read the classification data(4th tab). I have the Partner nu,mber and GUID.
    Thanks and regards
    Arijit Ghose

    Hi JE,
    Please let me know if you find the solution to this problem.
    Regards,
    Himanshu Sharma

  • What is the 'quickest' way to read char data from a txt file

    Hello,
    What is the 'quickest' way to read character data from a txt file stored on the phone to be displayed into the screen?
    Regards

    To be even a bit more constructive...
    Since J2me does not have a BufferedInputStream, it will help to implement it yourself. It's much faster since you read large blocks at ones in stread of seperate chars.
    something line this lets you read lines very fast:
      while ( bytesread < filesize ) {
             length = configfile.read( buff, 0, buff.length );
             // append buffer to temp String
             if ( length < buff.length ) {
                byte[]  buf  = new byte[length];
                System.arraycopy( buff, 0, buf, 0, length );
                tmp.append( new String( buf ) );
             } else {
                tmp.append( new String( buff ) );
             // look in tmp string for \r\n
             idx1 = tmp.toString().indexOf( "\r\n" );
             while ( idx1 >= 0 ) {
                //if found, split into line and rest of tmp
                line = tmp.toString().substring( 0, idx1 );
             /// ... do with it whatever you want ... ////
                tmp = new StringBuffer( tmp.toString().substring( idx1 + 2 ) );
                idx1 = tmp.toString().indexOf( "\r\n" );
             bytesread += length;
          }

  • Regarding reading the data from spool

    Hi Experts,
    How can i read the data from spool?
    I need to read the data from the spool and should display on the screen?
    Is there any FM to read the data from spool?
    Sruthi.

    hi please use this..
    CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'
        EXPORTING
          rqident              = v_spool
        TABLES
          buffer               = it_spool
        EXCEPTIONS
          no_such_job          = 1
          not_abap_list        = 2
          job_contains_no_data = 3
          selection_empty      = 4
          no_permission        = 5
          can_not_access       = 6
          read_error           = 7

  • Post - Processing Video Data From NetStream

    Is it possible to intercept video data from a NetStream object and do some custom post-processing say 'deblocking  on decoded data  or decryption on encoded content' etc. The Sound class provides access to the SampleData but i havent been able to find the Video class providing similar support. Am i missing something or is this inherently impossible
    Thanks in advance
    Sunil M

    I managed to perform video post-processing through alchemy some time ago.  I think I drew the video to a BitmapData object, converted the pixels to a bytearray with getPixels() to read them, and then updated the contents with setPixels() straight from alchemy's memory bytearray every frame.  Just watch out for endianness.
    Really, I imagine video postprocessing would be better suited for a pixel bender filter than alchemy code, and in general it is definitely not something flash player is designed to do.

  • Read in data from a file

    Hello,
    I am EXTREMELY new to java programming. I've read a book on learning java and I have no clue how to read in data from an input (text) file.
    I'd like to have the user enter a filename at the keyboard. The file will contain data for two fields separated by a blank. I want to read it into an array of a class of objects. Ex. 1 8
    3 8
    8 49
    The first number should go into array.fld1 and the second number should go in array.fld2.
    ex. cout <<< please enter your filename
    cin >>filename << endl;
    i:=0;
    while not eof(filename)
    read array.fld1;
    read array.fld2;
    i++;
    Can someone help me with this??

    Simple example
    try {
            BufferedReader in = new BufferedReader(new FileReader("FileName.txt"));
            String str;
            while ((str = in.readLine()) != null) {
                //do whatever whith str       
            in.close();
        } catch (IOException e) {
            //Handle Exception...

  • How to read in data from MySQL to Authorware?

    Hi,
    I am trying to read in values from my database (MySQL) to
    authorware, but the best I am able to get is true or false.
    I would like to be able to get some data from the database
    and return it to AW as a string. Does anyone have any experience
    with this? Can anyone lend a helping hand in this endeavor?
    Thanks in advance for your help,
    Brad

    "Paul Swanson" <[email protected]>
    wrote in message
    news:[email protected]...
    > Kevin, you shouldn't need to worry about ODBC or OLEDB.
    Your PHP script
    > needs to handle the database connection, and you can use
    PHP's
    > mysql_connect() function for that. You really don't need
    to do anything
    > different for Authorware than you do for any PHP/MySQL
    application in
    > terms
    > of connecting to the database.
    >
    > My PHP script returns data to AW in the form of
    name=value pairs delimited
    > by the ampersand character. I then use the following
    code in AW to convert
    > them into lists:
    >
    > =========================
    > -- Use this routine to break queryString into name /
    value arrays.
    > -- Assumes a database query returns a string of
    name=value pairs
    > -- delimited by the ampersand (&) character.
    >
    > -- strip leading & from queryString
    > queryString := SubStr(queryString, 1,
    CharCount(queryString))
    >
    > -- break into list of individual lines
    > tempList := Replace("&", Return, queryString)
    >
    > listLength := LineCount(tempList)
    >
    > -- create empty arrays for name and value
    > name := Array("", listLength)
    > value := Array("", listLength)
    >
    > repeat with counter := 1 to listLength
    > singleLine := GetLine(tempList, counter)
    > name[counter] := GetWord(1, Replace("=", " ",
    singleLine))
    > value[counter]:= GetWord(2, Replace("=", " ",
    singleLine))
    > end repeat
    >
    > -- now you will need to add a separate calc icon with a
    routine to
    > -- read the data from the arrays. name[counter] matches
    value[counter]
    > =========================
    >
    > I follow this with another Calc icon (I could have done
    it all in one
    > calc)
    > that parses the names and assigns the values to my
    custom AW variables:
    >
    > =========================
    > -- get just the info we want, and store in variables
    >
    > repeat with counter := 1 to listLength
    > if name[counter] = "Lesson1Complete" then
    > Lesson1Complete := Number(value[counter])
    > else if name[counter] = "Lesson2Complete" then
    > Lesson2Complete := Number(value[counter])
    > else if name[counter] = "Lesson3Complete" then
    > Lesson3Complete := Number(value[counter])
    > else if name[counter] = "Lesson4Complete" then
    > Lesson4Complete := Number(value[counter])
    > else if name[counter] = "Lesson5Complete" then
    > Lesson5Complete := Number(value[counter])
    > else if name[counter] = "Lesson6Complete" then
    > Lesson6Complete := Number(value[counter])
    > else if name[counter] = "Lesson7Complete" then
    > Lesson7Complete := Number(value[counter])
    > else if name[counter] = "Lesson8Complete" then
    > Lesson8Complete := Number(value[counter])
    > else if name[counter] = "OverviewComplete" then
    > OverviewComplete := Number(value[counter])
    > else if name[counter] = "grade" then
    > score := Number(value[counter])
    > else if name[counter] = "passed" then
    > passed := Number(value[counter])
    > end if
    > end repeat
    I'd like to point out here that any time you have a series of
    variables that
    all have identical names except for a number in the variable
    name, you
    should be looking at lists. I'm surprised, Paul, that you
    have lists used
    to the extent that you're able to use Value[counter] on the
    right side of
    the equation, yet you're not using lists on the left side of
    the equation.
    Let's look at how this code could be made super simple by
    having ONE list
    variable, LessonComplete, instead of Lesson1Complete through
    Lesson8Complete.
    -- Assumes a database query returns a string of name=value
    pairs
    -- delimited by the ampersand (&) character.
    -- strip leading & from queryString
    --(note you could also not add this ampersand on the PHP
    side)
    queryString := SubStr(queryString, 1, CharCount(queryString))
    -- break into list of individual lines
    tempList := Replace("&", Return, queryString)
    listLength := LineCount(tempList)
    -- create empty arrays for name and value
    name := Array("", listLength)
    LessonComplete := []
    repeat with counter := 1 to listLength
    singleLine := GetLine(tempList, counter)
    name[counter] := GetWord(1, Replace("=", " ", singleLine))
    LessonComplete[name[counter] * 1] := GetWord(2, Replace("=",
    singleLine))
    end repeat
    -- now you will need to add a separate calc icon with a
    routine to
    -- read the data from the arrays. name[counter] matches
    value[counter]
    --No you don't...You're DONE :-)
    Also note that this is extensible...you can have Lesson 9,
    10, etc. and not
    have to change the code. You can also lower the amount of
    data being
    transmitted, because now instead of Lesson8Complete=1 all you
    need is 8=1.
    This lowers the server load and speeds the response. It has
    advantages on
    the Authorware side as well, because if, for instance, you
    had a series of
    buttons that were checked or not based on the completion, you
    could do the
    same type of loop. Separate variable names do not allow for
    that type of
    loop unless you use Eval (ugh).
    HTH;
    Amy

  • How to read a data from USB port using JAVA

    hi all,
    i need to know how to read a data from USB port using java. any API are available for java ?.........please give your valuable ideas !!!!!!!!!
    Advance Thanks!!

    You can do this. Please use this link
    [http://www.google.co.in/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=uHu&q=java+read+data+from+usb+port&btnG=Search&meta=&aq=f&oq=]
    What research did you do of your own? Have you done some testing application and tried yourself??

  • How to read the data from Excel file and Store in XML file using java

    Hi All,
    I got a problem with Excel file.
    My problem is how to read the data from Excel file and Store in XML file using java excel api.
    For getting the data from Excel file what are all the steps i need to follow to get the correct result.
    Any body can send me the code (with java code ,Excel sheet) to this mail id : [email protected]
    Thanks & Regards,
    Sreenu,
    [email protected],
    india,

    If you want someone to do your work, please have the courtesy to provide payment.
    http://www.rentacoder.com

  • How to read the data from excel file and store into the table?

    Hi All,
    I have table with BLOB datatype contains a excel file. I have to read that data from excel and store into one table with all the fields in excel.
    All the excel fields and my table columns are same.
    Can you share with me how can acheive this using LOB's?
    Thanks

    Hi OraSuirya,
    you can try with external tables .
    syntax as follows
    create table ext_table_csv (
    i Number,
    n Varchar2(20),
    m Varchar2(20)
    organization external (
    type oracle_loader
    default directory ext_dir
    access parameters (
    records delimited by newline
    fields terminated by ','
    missing field values are null
    location ('file.csv')
    reject limit unlimited;
    For this you need to create directory
    Directory Creation syntax:
    create or replace directory ext_dir as 'D:\oracle\user_dir\ext_dir';
    grant read, write on directory ext_dir to <User>;
    please paste the excel file in the particular directory .
    I hope this will help you.
    Please correct me if I am wrong anywhere .
    Thanks,
    Tippu.

  • Regarding reading the data from the files without using Stremas

    hai to all of u...
    here i have a problem where i have to read the data from the files without using any streams.
    please guide me how to do this one,if possible by giving with an example
    Thanks & Regard
    M.Ramakrishna

    Simply put, you can't.
    By why do you need to?

  • Reading aggregated data from a cube/multiprovider

    Hi BI people
    My project is currently looking for a functionmodule that reads aggregated data from a cube/multiprovider.
    I already have a functionmodule that reads data from a cube and returns it in a flat format. I have debugged this, but have not found any flags that can enable the OLAP functionality needed to perform the aggregation. The functionmodule is "RSDRI_INFOPROV_READ_RFC".
    The situation is that I need to apply the aggregation logic of a profit center hierrarchy to the data I read from RSDRI_INFOPROV_READ_RFC, this means manually replicating the the OLAP engine functionality (keyfigure aggregation exception, ect.) and this is not an option with the available time/budget.
    Please have a look at the example below:
    Say that I have a profit center hierarchy as displayed below (with postable nodes).
    PC1 - $10
         |---- PC2  - $30
         |---- PC3  - $20
    The data I'm getting back from the functionmodule RSDRI_INFOPROV_READ_RFC looks like this:
    PC1 $10
    PC2 $30
    PC3 $20
    But I need the data aggregated. An aggregation utilizing the hierarchy above will make the data look like this:
    PC1 $60
    PC2 $30
    PC3 $20
    Instead of building an aggregation program, it would be usefull if it was possible to extract aggregated data.
    Any comments appreciated.
    Regards
    Martin

    Thx Olivier,
    The problem is that I need a functionmodule that can apply the OLAP aggregation for a hierarchy to the data outpu from RSDRI_INFOPROV_READ_RFC.
    ... or the best alternative would be if there were a fm/class that could provide me with the hierarchy aggregation of the data.
    /Martin

  • Reading JSON data from a URL

    Hi all,
    I have a requirement of reading JSON data from a particular URL and using one of the value to set one property in iView. I need some info on how to get JSON data from a URL and extracting attribute's value from it.
    What are the APIs that can be used for this?Can anyone provide a solution/working example in Java for this?
    I am working on EP 7.3.

    Hi Tarun,
    JAXB should work for you. Take a look at this example:
    JAXB JSON Example | Examples Java Code Geeks
    Regards,
    Tobias

Maybe you are looking for

  • Captivate Subscription - Doesn't seem to be able to verify my paid subscription

    This one might be beyond the technical expertise of the community at large, but I will give it a shot. My 5.5 and 6 subscriptions worked fine in the past, but 7 just doesn't seem to be able to see that I have a paid subscription. Here is what has tra

  • Automatic billing document creation upon saving credit memo request.

    Hi, I have a requirment where in : When a Credit Memo Request is created(va01) and upon saving the credit memo request an automatic billing document needs to be genereated i.e Credit Memo. How can this be achieved. Thanks

  • Why N95-1(0534832) still do not have V30 FW

    Last month,i know that most N95 can be upgrade the firmware to V30 .Right now there is some people who live in Taiwan that they can upgrade their cell phone to v30.But the users who live in Hong Kong they can't. Anyone can tell me that how long do al

  • Powermac G5 1.8Ghz June 2004 won't boot anymore

    Hi all, Past week i've bought a second hand PM G5. At first it seems to be all ok, but right now its not working anymore. I've managed to install the OSX on the first evening i've had the PM G5. After installing evrything seemed to be fine. But after

  • Is it possible to upgrade from CS3 mac, to CS6 windows?

    Hi, I have Creative Design Suite CS3 Student for Mac, is there anyway I can purchase an upgrade for any standard CS6 programs or the Design suite? I'm mainly interested in photoshop. I'm not earning any money out of it, I was ready to pay £300-500 fo