Json encode and Recordsets

Hi,
I have a jquery autocomplete that requires a json response for a remote database. I am not familiar with json, so, I'm not sure if I'm using json_encode correctly.
The jquery script on my input page is straight from a working demo, so the problem seems to be with the json encode on the "search" php page.
This is from the Search.php page:
mysql_select_db($database_connmal, $connmal);
$query_rsname =
sprintf("SELECT act_info.first FROM act_info WHERE act_info.insight = %s
OR act_info.insight = 0", GetSQLValueString($colname_rsname, "int"));
$rsname = mysql_query($query_rsname, $connmal) or die(mysql_error());
$row_rsname = mysql_fetch_assoc($rsname);
$totalRows_rsname = mysql_num_rows($rsname);
echo json_encode($row_rsname);
Thanks,
Tim

The output on the search.php page is:
{"name":"name1"}
Only the first result shows from the recordset. I can echo everything in the recordset with:
do {
echo json_encode($row_Recordset1);
} while ($row_rsexercises = mysql_fetch_assoc($Recordset1));
but I don't think that's the right way to do it. It gives the following:
{"name":"name1"} {"name":"name2"} {"name":"name3"} {"name":"name4"}
Neither way is being picked up by the requesting page. Tried a couple of other things with no luck.
(Tested the input page by changing the url to the Jquery demo search.php page, that works fine.)

Similar Messages

  • _*I am behind proxy  and  i tried to  decode *JSON* encoded  script behind

    I am behind proxy  and  i tried to  decode JSON* encoded script behind proxy, Using curl i read the url and then feed that to JSON_DECODE but this is giving*
    invalid argument or error at JSON_DECODE can u expalin any solution?
    <?php
    session_start();
    require_once('JSON.phps');
    $url = 'http://ajax.googleapis.com/ajax/services/search/web?rsz=large&v=1.0&q=' . urlencode('site:' . $_SERVER['localhost'] . ' ' . $_POST['searchquery']);
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 0);
    curl_setopt($ch, CURLOPT_PROXY, "172.31.1.1");
    curl_setopt($ch, CURLOPT_PROXYPORT, 8080);
    curl_setopt($ch, CURLOPT_PROXYUSERPWD, "myid:myPASS");
    curl_setopt($ch, CURLOPT_URL, $url);
    $body = curl_exec($ch) or die(curl_error($ch));
    curl_close($ch);
    $json = new Services_JSON();
    $json = $json->decode($body);   //Giving error at this point as INVALID ARGUMENT
    foreach($json->responseData->results as $searchresult)
    if($searchresult->GsearchResultClass == 'GwebSearch')
    $formattedresults .= '
    <div class="searchresult">
    <h3><a href="' . $searchresult->unescapedUrl . '">' . $searchresult->titleNoFormatting . '</a></h3>
    <p class="resultdesc">' . $searchresult->content . '</p>
    <p class="resulturl">' . $searchresult->visibleUrl . '</p>
    </div>';
    $_SESSION['googleresults'] = $formattedresults;
    header('Location: ' . $_SERVER['HTTP_REFERER']);
    exit;
    ?>

    This is a Java forum. Your script appears to be written in PHP.
    Please note that Javascript and Java are unrelated.

  • Json.encode not working in Flash CS6?

    Hey all,
    I just updated to CS6 last week and tried to run one of my applications that worked fine in 5.5.
    I'm now getting an error when I try to compile it. The error is 'Call to a possibly undefined method encode through a reference with static type Class'.
    The error coming from this line:
    var myJson:String = JSON.encode(myData);
    Importing the package com.adobe.serialization.json.JSON, so everything should be fine?
    Is there a new way to encode/decode JSON data in CS6? Is there a fix around, or am I just missing something completely?
    Cheers.

    if you're publishing for fp 11 or better you will use the native flash JSON class.  in that case, you should use the static parse() and stringify() methods.
    if you're publishing for less than fp11, you can use mike chambers JSON class (https://github.com/mikechambers/as3corelib) that has static encode() and decode() methods.

  • JSON encoding problem with entities

    I am trying to pass actionscript strings that have entities such as the Degrees symbol (as in 175°, not sure if the degree symbol shows here)
    I have a string like:
    private var step7b:String = "Cool the custard to below 70° F by stirring it over the ice bath. ";
    When the PHP attempts to write out this line of text it either fails completely, or prints the wrong entity code. such as "Preheat oven to 325% u02DAF"
    What do I need to do to correctly pass symbols such as the degree sign from an Actionscript string to PHP?
    Note: Entities loaded from XML work fine.  It's only AS string variables.  And this whole setup worked correctly when I used to use a WSDL service, the JSON is new and it's when this problem arose.  I am using this code block:
    // create the JSON
                        var objSend:Object = new Object();
                        var dataString:String = JSON.encode(packagedData);
                        dataString = escape(dataString);
                        objSend.jsonSendData = dataString;

    Hi,
    You are using something like dataString = escape(jsonString);
    the escape function in actionscripts does about the same as urlencode(addslashes(jsongString) in php.
    So you could try what happens if you leave out the escape or if you're able to adjust the php side, then
    use a urldecode(jsonString) or something.

  • Since new update - Adobe Media Encoder and CUDA not working

    CUDA not launching - Premier CC says that only software will work. Media encoder crashes on launch. Re-installed both.
    Nvidia 670 GTX

    What version of Premiere Pro? Include the minor version number (e.g., Premiere Pro CS5.5 with the 5.5.2 update).
    Premier Version 7.2.2 (33)
    Have you installed the recent updates? (If not, you should. They fix a lot of problems.)
    Problem started after I installed the software updated
    What operating system? This should include specific minor version numbers, like "Mac OSX v10.6.8"---not just "Mac".
    Windows 7 Ultimate - SP1
    What kind(s) of source footage? When telling about your source footage, tell us about the codecs, not just the container types. For example, "H.264 in a .mov container", not just "QuickTime".
    REDCODE .r3d from R1 - RedCode 28
    If you are getting error message(s), what is the full text of the error message(s)?
    Adobe Media Encoder Has Crashed - please contact your system administrator. This graphics card is not supported, CUDA disabled.
    What were you doing when the problem occurred?
    Booting premier pro, opening a new project, when trying to render using the encoder
    Has this ever worked before?
    Yes worked fine before 7.2.2 update
    What other software are you running?
    Chrome, Media Player
    Do you have any third-party effects or codecs installed?
    RED Giant Universe is installed
    Tell us about your computer hardware. Be especially certain to tell us about third-party I/O hardware (e.g., AJA, Matrox, Blackmagic, MOTU).
    i7 3930k 12 Core, Nvidia 670 GTX 4GB, 32GB Corsair 1866 RAM, RAID HDD
    Are you using Mercury Playback Engine GPU Acceleration?
    YES - Nvidia 670GTX video card
    Does the problem only happen with your final output, with previews, or both?
    Problem Occurs when rendering the final output for the Medi Encoder and the GPU issue when I open a new project that used to use Mercury
    I also cannot seem to find the file within Premier Pro for "supported Cards" - I had this issue before and I just added my card to this list, this list seems to be missing.
    Thank you.

  • Best practice for encoding and decoding DUT/UUT registers? Class? Cluster? Strings? Bitbanging?

    I am architectecting a LabVIEW system to charactarize silicon devices.  I am trying to decide the best way to enqueue, encode, and decode device commands executed by my test system.
    For example, a ADC or DAC device might come in both I2C and SPI flavors (same part, different interface) and have a large register map which can be represented as register names or the actual binrary value of it's address. 
    I would like my data structure to
    *) be protocol agnostic
    *) have the flexibility to program using either the memonics or hard coded addresses
    *) be agnostic to the hardware which executes the command. (
    *) I would like to enqueue mulitple commands in a row.
    I am thinking a detailed class is my best bet, but are there are examples or best practices already established?

    I agree on the detailed class inherited from a general DUT-class. Especially if you want to mix interfaces you need to keep those as far away from your top vi as possible.
    As to the 4th point i'd implement command-vi's as enque and have a in-class command-queue (or possibly just an array of commands).
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Exporting to Media Encoder and file locating issue

    Ok, Now I've read a LOT of threads trying to find a solution to this but none of them have answered my problem exactly, so here's what I have:
    Running a New computer with a clean install of Windows 7 64 bit and Adobe CS4 Master Suite
    Hardware:
    Dell Precision M6400
    Intel(R) Core(TM)2 Duo CPU  T9900 @ 3.06 Ghz, 3.07 Ghz
    12.0 GB Ram
    Premiere ran fine for a while, but soon I've run into a problem where I try to export to the Media Encoder and I keep getting the error:
    "Could not read from the source. Please check if it has moved or been deleted"  over and over
    I have deleted recently imported media one at a time to try and locate what's causing it since it wasn't doing this before, but no luck.  So I restarted the program but now the Premiere project won't open.  The task bar loads until about 2/3 in and stops there indefinitely, I've left and came back to it 2 hours later and it hadn't moved.  I back tracked and found a previous save that will open, but it still will not export, it still says "Could not read from the source. Please check if it has moved or been deleted".  And as soon as I update anything and save a new file that one will not open either.
    I've tried recompressing each video file into a format I know works well with Premiere but still no difference. 
    This problem has plagued my workflow for a while now and I can't take it anymore.  I've had to restart clean project files to try to work around it but I lose so much progress, and the work around by rendering the premiere file through After effects hasn't worked either.  The error I get there says "Dynamic link server is busy".
    Here's what the problem is not:  It is not because I uninstalled CS3 or any other previous version, I've never had it on this computer.  It's not a plugin problem, I don't have any plugins on this install except for the default ones that Came with Adobe Master Suite for Premiere Pro. 
    Someone please help me, this is ridiculous that I have had to trouble shoot the program this much.  Both CS4 and Windows 7 have been around for over a year now and neither are in Beta Editions

    Wow, sorry, forgive me if I've seen most forums work with a lot less, and your dismissiveness led me to assume you hadn't read my post.
    All of this is new and up do date as far as Adobe and Windows updates go, that's Version 4.2.1.
    My projects for this are all in NTSC Widescreen DV 24P, the particular sequence that I render from is in that format as well, although regardless of which one I use the problem keeps occurring. 
    My renders for my recent purposes have been compressed in .h264, IPOD video Large.  The codec I'm rendering in also doesn't seem to matter, because I've tried this in .avi., .mov, .h264, .wav, etc. and all with various settings that I thought might help, but the encoder quits encoding 4 seconds in and gives me the error that it can't find the media.
    And I didn't mention the media type and what not because it seems irrelevent of what I use this problem keeps happening.  I'm pretty sure it's a problem with the project file or perhaps the media encoder or both.
    And I don't know what you mean by "disks"
    Do I have a Raid set up on my hard disk?  No, I have two 0.5 TB hard drives, Programs on one (C:\) Projects on the other (D:\). 
    What address am I saving the scratch disks to?  I use the default of "same as Project".  Have I tried Clearing it?  Yes.
    I don't think I'm getting at what you're asking.
    And I don't think I've ever used an .xlsm (which is excel?) file and I've definitely never used a Power point project (PPS?) file in my projects.  And they open in their respective programs, although I'm not sure why you asked about that.  Again I'm not sure I know what you mean.
    The Premiere Project (.prproj) file is what I'm trying to open when the progress bar stops at 2/3 the way through and forces me to terminate the process with the task manager to close it.
    It would help to mention that all my projects are animated and I use premiere to cobble them together, so no problems that relate to transferring media from a camera to the computer would apply here.  Most of the files I get out of Maya are in Default .avi or .mov files, and I also use a handful of .wav files for the dialogue and .jpgs for cards and placeholders. 
    I believe that this problem began when I updated a few of the files in my project, but I've been doing that for weeks without incident.  I've been updating them by saving over the old media file with the updated one of the same name, length, and type. 
    I don't work exclusively with Premiere, in fact it's not what I usually use, that would be Final Cut Pro.

  • Everytime I try to enter something into the search box a further box appears to tell me this is a json file and what program should I use to open it. How can I

    I am using Linux mint 12 with firefox.
    Everytime I try to type something in the search box a further box appears to tell me this is a JSON file and what program should I use to open it.
    This has only happened since reinstalling my system a couple of weeks ago.
    I am not really interested in what a json file is I simply want to get rid of this pop up box.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    See also:
    *[[/questions/921535]]

  • SOAP in XI: message use="encoded" and binding/@style="rpc"

    Hi
    Hope somebody who is familiar with XIs SOAP implementation could give the answer for my questions. Problem is that the SOAP server is not working but I am afraid that the reasons are not really simple.
    In our company we have to provide some SOAP services. I have entered as much as I could in IR ... including a simple scenario. Then imported the scenario to ID and the wizard created a number of agreements and determinations...
    As I need to describe the service to external parties, then I used IDs Web Service definition tool to generate the WSDL.
    But as the external messaging framework (for us a preprogrammed SOAP client) is fixed, I noticed that there are some differences that might matter.
    XI generated WSDL where SOAP binding has
    wsdl:binding/soap:binding/@style="document" but I would need it to be "rpc"
    And the second thing is that in binding message bodies have attribute @use="literal" but as the messages should have several parts then it should be "encoded" (and encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    also is needed then).
    Could somebody explain if these may be the reasons why the soap server does not work. And if there is a way to define soap interface so that it would have above mentioned properties as needed.
    A easy question also... I would need for a method to have an empty message... inside soap body there should be just a tag with the message name and no content. But I can not figure out how to create a message type with no datatype.
    Thanks for any input!

    Hi, Stefan
    Thanks for the answer. To clear my questions: we want to deploy XI as the SOAP server (sry I have not figured out if it is a sender or receiver channel by name - all this inbound-outbound naming in XI is quite complex). Our SOAP server/XI is actually  just one part of a big SOAP network and MAFIA it uses rpc styled SOAP messages.
    The note is really useful, but still it does not give any hint how to make a RPC styled SOAP interface. So the problem is still up for me. As I am not very familiar with WSDL bindings and SOAP... for the message it self, is there any difference as for the RPC vs DOCUMENT style is discussed? Is it possible that the physical structure of a SOAP envelope could be the same?
    And the second question: is there a way in IR to define several parts for a message. Something like:
    <message name="isiku_andmed">
      <part name="paring" type="tns:isiku_andmed_paring" />
      <part name="keha" type="tns:isiku_andmed_keha" />
    </message>

  • Continuing font encoding and tag issues with snow leopard and CS4oI

    I am looking for help with a font handling issue with snow leopard and cs4 Indesign. Despite numerous calls and hours on the phone neither Apple nor Adobe has been helpful. I have had this issue open with Adobe since oct 5 but they remain totally unresponsive to date. I need to be able to use Type 1 fonts and do the following , export a pdf from Indesign with the following attributes: 1) xml tags for stories and objects. 2) have the fonts encoded as ansi and embedded.
    Some additional information  - exporting to ps is not an option as it destroys the xml tags. and doesn't guarantee that the fonts won't become CID or some other odd encoding.
    As it stands now,
    Leopard (10.5.8) and CS3 creates ansi encoded fonts with xml tags.
    Leopard (10.5.8) and CS4 creates ansi encoded fonts with xml tags.
    Snow leopard and CS3 creates ansi encoded fonts and xml tags
    Snow leopard and CS4 creates custom subsetted fonts and some xml tags.
    If any one has any advice on how to force specific font encodings from CS4 pdf exports so that i can preserve the tags and get the correct fonts I would be grateful.

    The font encoding is not a function of the OS version, but rather of how a font is internally encoded and the content you are representing with the font.
    If you are seeing a difference between MacOS 10.5 and 10.6 with the same Adobe software, it probably has something to do with use of a system font that is somehow different from one version of the OS to another. InDesign does not use any of the OS' font handling software.
    Assuming that the fonts are embedded, subset or not, what is your issue with whether a font is ANSI-encoded, custom-encoded, or CID-encoded? It should make no difference for purposes of workflow beyond InDesign for software that adheres to the PDF specification (including all versions of PDF from 1.3 and up to 1.7 plus ISO 32000-1 PDF and all versions of PDF/X and PDF/A).
    Neither InDesign or any other Adobe application provides user choices for the encoding since it shouldn't make a difference. The encodings chosen by Adobe's core technology components are for a combination of optimization and to support proper text search, copy, etc.
              - Dov

  • Encoder and analog feedback together

    I am using a PCI 7344 board that will operate up to 4 axis with both encoder and transducer feedback.
    The user will have the ability to switch between the two types of feedback whilst on the fly with the system momentarily executing a stop command before re-configuring itself in the other mode be it encoder or transducer. This works fine.
    My problem is - when I am in encoder feedback mode, I do not get a feedback reading from my transducer as my primary feedback device is the encoder and as such the output given is for the primary device. I need to be able to see the analog feedback device whilst operating with the encoder and primary feedback.
    I may have a solution to this, by using one of the feedbacks as the secondary feedb
    ack although could not find any information regarding secondary feedback on NI's web site.

    Hello,
    First of all, analog feedback can not be used as secondary feedback. When you are running on analog signal as your primary feedback, you should be able read encoder data calling the Read Encoder Position.flx. When you are running on encoder as your primary feedback, you should be able read analog data calling the Read ADC.flx. If you do the enabling/disabling properly when you are switching from one feedback mode to other, you should be able to read all the signals.
    Hope this helps!
    Regards,
    Yusuf C.
    Applications Engineering
    National Instruments

  • After I restore bookmarks from a json file and they display correctly in the browser, why the next time I start Firefox4, do the old bookmarks display?

    Three times I have restored from a bookmarks json file and each time the bookmark folders display showing the new bookmarks but each time after I exit and restart FF4, the original bookmarks that were replaced by bookmarks from my json file reappear. The restore process seems to work exactly as it should but new bookmarks are apparently not saved since the old ones display each time I restart FF4.
    I am using WinXP on an older Dell laptop with 2Gb memory and current FF4 as of April 23, 2011.
    I don't know what to do to make the new bookmarks become permanent. Help?

    This can be a problem with the file places.sqlite that stores the bookmarks and the history.
    * http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • Encode and Decode 16 bit grayscale image to jpeg2000

    i am trying to convert 10 bit grayscale raw image to jpeg 2000 using J2KImageWriter and i want it to convert back to grayscale raw image but when i am converting it it gives NULL.
    Here is my code
    public class Main {
    public static void main(String[] args) {
    if(args.length!=4)
    System.out.println("\nEnter imagefile height width header\n");
    System.exit(0);
    String filename=args[0];
    int height=Integer.parseInt(args[1]);
    int width=Integer.parseInt(args[2]);
    int header=Integer.parseInt(args[3]);
    try
    //reading the image data
    FileInputStream imagefile=new FileInputStream(filename);
    System.out.println("\nSize of image file:"+imagefile.available());
    System.out.println("\nHeader:"+String.valueOf(header)+" bytes\n");
    imagefile.skip(header);
    short pixels[]=new short[height*width];
    int i,j,k;
    k=0;
    for(i=0;i<height;i++)
    for(j=0;j<width;j++)
    int lsb=imagefile.read();
    int msb=imagefile.read();
    pixels[k]=(short)(msb<<8 | lsb);
    k++;
    //System.out.println(String.valueOf(pixels[i][j]));
    imagefile.close();
    DataBuffer buffer=new DataBufferUShort(pixels,width*height);
    SampleModel sm=RasterFactory.createBandedSampleModel(DataBuffer.TYPE_USHORT,height,width,1);
    Raster raster=RasterFactory.createWritableRaster(sm, buffer,new Point(0,0));
    //imagedata reading complete
    //conversion to jpeg 2000
    String outfile=args[0].substring(0,args[0].lastIndexOf('.'))+".jp2";
    File outimage=new File(outfile);
    ImageOutputStream imout=ImageIO.createImageOutputStream(outimage);
    J2KImageWriteParam j2kparam=new J2KImageWriteParam();
    J2KImageWriterSpi spi=new J2KImageWriterSpi();
    J2KImageWriter j2kwriter=new J2KImageWriter(spi);
    j2kparam.setLossless(true);
    j2kparam.setComponentTransformation(false);
    j2kparam.setEncodingRate(0.5f);
    j2kparam.setFilter(J2KImageWriteParam.FILTER_53);
    j2kparam.setNumDecompositionLevels(3);
    j2kparam.setWriteCodeStreamOnly(true);
    j2kwriter.setOutput(imout);
    j2kwriter.write(null,new IIOImage(raster,null,null),j2kparam);
    imout.close();
    J2KImageReaderSpi j2kspi=new J2KImageReaderSpi();
    J2KImageReader j2kreader=new J2KImageReader(j2kspi);
    ImageInputStream imin=ImageIO.createImageInputStream(outfile);
    j2kreader.setInput(imin, true, false);
    Raster decomp_raster=j2kreader.readRaster(1, null);
    int outputdata[]=new int[width*height];
    decomp_raster.getPixels(0,0,width,height,outputdata);
    FileOutputStream fileout=new FileOutputStream("decomp");
    for(i=0;i<height*width;i++)
    short temp=(short)outputdata;
    fileout.write(Short.valueOf(temp).byteValue());
    Short a=new Short(Short.reverseBytes(temp));
    fileout.write(a.byteValue());
    fileout.close();
    catch(Exception e)
    System.out.println(e.getMessage());
    Can anybody help me with this. Actually i need to study the performance of jpeg2000 compression using different setting of parameters.
    Thanks in advance.......

    Hi,
    I am able to encode and decode the image using J2Kwriter and J2Kreader classes. But now some other issue has came up.
    When compressed losslessly, the new jpeg2000 filesize is 415245 bytes. (My original file is of size 2000000 bytes)
    But when i am doing lossy compression, it results in following file sizes.
    Below 0.5 (encoding rate) - 535 bytes.
    Greater than or equal to 0.5 - 541 bytes.
    I tried with the following values of encoding rate - 0.1, 0.3, 0.5, 0.8, 1, 1000, 100000000, 500000000.
    I m not able to understand why i am getting the same filesize even with different encoding rate.
    How should i set the encoding rate parameter to achieve my target compression ratio.
    Kindly guide me. I will be very thankful to you.
    Preeti

  • Encode and Decode Base64

    Hi All,
    I need to Encode and Decode Base64 File. 
    Please let me know if there is any Function Modules or Class Methods to achieve the requirement.
    Thanks in advance.
    Regards
    Joseph
    Message was edited by: Joseph Brown

    Hi,
    This is the encoded base64 file in XML format:
    <?xml version="1.0" encoding="UTF-8"?>
    <Z_CREFO_DOC>
    <E_PDF><![CDATA[JVBERi0xLjMKJcfsj6IKNSAwIG9iago8PC9MZW5ndGggNiAwIFIvRmlsdGVyIC9GbGF0ZURlY29k
    ZT4+CnN0cmVhbQp4nE2MPQ/CMAxEd/8Kj/aQEKehIWvFh8QElTfEVNFOGUr7/0UagcTd8vSkuxmd
    FY9u6wGDLs4rRA1dhfvvCeYIaDbbZU8c9Dxk7LMGG50RGkWsHobExpj7F1NjhBzfCgG5tAR/Z0
    5pYMN6Qs9OJACxuhlY0n5Kde4aRwL/0A6e4hnWVuZHN0cmVhbQplbmRvYmoKNiAwIG9iagoxMzEK
    ZW5kb2JqCjQgMCBvYmoKPDwvVHlwZS9QYWdlL01lZGlhQm94IFswIDAgNTk1LjIyIDg0Ml0KL1Jv
    dGF0ZSAwL1BhcmVudCAzIDAgUgovUmVzb3VyY2VzPDwvUHJvY1NldFsvUERGIC9UZXh0XQovRXh0
    R1N0YXRlIDEwIDAgUgovRm9udCAxMSAwIFIKPj4KL0NvbnRlbnRzIDUgMCBSCj4+CmVuZG9iagoz
    IDAgb2JqCjw8IC9UeXBlIC9QYWdlcyAvS2lkcyBbCjQgMCBSCl0gL0NvdW50IDEKL1JvdGF0ZSAw
    Pj4KZW5kb2JqCjEgMCBvYmoKPDwvVHlwZSAv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AKMDAwMDAwMDU4NSAwMDAwMCBuIAowMDAw
    MDAwNjE1IDAwMDAwIG4gCjAwMDAwMDE3OTYgMDAwMDAgbiAKdHJhaWxlcgo8PCAvU2l6ZSAxNCAv
    Um9vdCAxIDAgUiAvSW5mbyAyIDAgUgovSUQgWyityXEclVXSeoKdpGR5FFwppSkorclxHJVV0nqC
    naRkeRRcKaUpXQo+PgpzdGFydHhyZWYKMjU5NgolJUVPRgo=]]>
    </E_PDF>
    <C_ERROR></C_ERROR>
    </Z_CREFO_DOC>
    Can i pass all these characters or i need to transform it first, extract the value of the element and decode? Finally i need to write the decoded outcome to a file (a pdf file) to the hard drive (may be with: OPEN DATASET P_DATASET FOR INPUT IN TEXT MODE ENCODING DEFAULT)
    I saw this hint but I think there should be more to it (eg. transformation of the initial decoded xml file and the writing it to hard drive using the Open Dataset for Input...):
    ****************being of report *************************
    DATA: z       TYPE string,
          encode  TYPE string,
          decode  TYPE string .
    DATA: obj  TYPE REF TO cl_http_utility,
          cref TYPE REF TO if_http_utility.
    CREATE OBJECT : obj.
    cref = obj.
    z = 'what u have to encode'.
    encode = obj->if_http_utility~encode_base64( z ) .
    decode = obj->if_http_utility~decode_base64( encode ).
    ****************end of report ***************************
    What do i need more to the above report

  • Matrix with CFL and RecordSet with DoQuery

    Hello Experts,
                            How to use Matrix with CFL and RecordSet with DoQuery

    Hi Manish,
    Refer to SDK sample on CFL at ...\SAP\SAP Business One SDK\Samples\COM UI\VB.NET\17.ChooseFromList
    Go to SDK Help, Developer's Guide -> DI DPI -> Reference -> Overview -> Objects -> Recordset
    see the Example "Recordset Operations sample" at the bottom of the page
    HTH
    Aravind

Maybe you are looking for