<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Home</title><link>https://sourceforge.net/p/pljson/wiki/Home/</link><description>Recent changes to Home</description><atom:link href="https://sourceforge.net/p/pljson/wiki/Home/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 11 Mar 2021 20:06:31 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/pljson/wiki/Home/feed" rel="self" type="application/rss+xml"/><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/pljson/wiki/Home/?limit=25#d239</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;it was highly recommended  for me. but finally you can help us. &lt;br/&gt;
Please post more projects as such type of work.&lt;br/&gt;
like (java classes for getting client ip , os name, login name file transfer from client to client , server to client and also client to server)&lt;br/&gt;
Thanks Alot&lt;br/&gt;
Regards&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">usman</dc:creator><pubDate>Thu, 11 Mar 2021 20:06:31 -0000</pubDate><guid>https://sourceforge.net43064d687ed78661745b94dbd54070c7cde5686e</guid></item><item><title>Discussion for Home page</title><link>https://sourceforge.net/p/pljson/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I'm using the script below in order to copy data from MongoDB to Oracle DB. The response is JSON format. For normal fields size, it works fine. However, one of the fileds "Photo" is base64 format and it is larger than 32KB. Hence, it's stored in Oracle DB but incomplete:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;code&gt;
DECLARE
  l_param_list     VARCHAR2(512);

  l_http_request   UTL_HTTP.req;
  l_http_response  UTL_HTTP.resp;
  l_response_text  CLOB;
  --l_response_text  VARCHAR2(32767);
  buf VARCHAR2(32767);
l_list json_list;
A_id           VARCHAR2(100);
Photo          CLOB;
A_Name         VARCHAR2(100);
Remarks        VARCHAR2(100);
Status         VARCHAR2(100);
UserId         VARCHAR2(100);
A_Date         VARCHAR2(100);
A_Time         VARCHAR2(100);
MSG_status     VARCHAR2(100);
Oracle_Flag    VARCHAR2(100);
acl            VARCHAR2(100);
obj json_list;

BEGIN

  -- service's input parameters

  -- preparing Request...
  l_http_request := UTL_HTTP.begin_request('https://api.appery.io/rest/1/db/collections/Photos?where=%7B%22Oracle_Flag%22%3A%22Y%22%7D'
                                          , 'GET'
                                          , 'HTTP/1.1');

  -- ...set header's attributes
  UTL_HTTP.set_header(l_http_request, 'X-Appery-Database-Id', '53f2dac5e4b02cca64021dbe');
  --UTL_HTTP.set_header(l_http_request, 'Content-Length', LENGTH(l_param_list));

  -- ...set input parameters
 -- UTL_HTTP.write_text(l_http_request, l_param_list);

  -- get Response and obtain received value
  l_http_response := UTL_HTTP.get_response(l_http_request);

 Begin
 LOOP
    UTL_HTTP.read_text(l_http_response, buf);
    l_response_text := l_response_text || buf;
  END LOOP;
  EXCEPTION
  WHEN UTL_HTTP.end_of_body THEN
    NULL;

 End;
 --UTL_HTTP.read_text(l_http_response, l_response_text);
 -- DBMS_OUTPUT.put_line(l_response_text);
  l_list := json_list(l_response_text);

FOR i IN 1..l_list.count
LOOP

A_id        := json_ext.get_string(json(l_list.get(i)),'_id');
Photo       := json_ext.get_string(json(l_list.get(i)),'Photo');
A_Name      := json_ext.get_string(json(l_list.get(i)),'Name');
Remarks     := json_ext.get_string(json(l_list.get(i)),'Remarks');
Status      := json_ext.get_string(json(l_list.get(i)),'Status');
UserId      := json_ext.get_string(json(l_list.get(i)),'UserId');
A_Date      := json_ext.get_string(json(l_list.get(i)),'Date');
A_Time      := json_ext.get_string(json(l_list.get(i)),'Time');
MSG_status  := json_ext.get_string(json(l_list.get(i)),'MSG_status');
Oracle_Flag := json_ext.get_string(json(l_list.get(i)),'Oracle_Flag');
acl         := json_ext.get_string(json(l_list.get(i)),'acl');

insert into Appery_Photos values(
  A_id,
  Photo,
  A_Name,
  Remarks,
  Status,
  UserId,
  A_Date,
  A_Time,
  MSG_status ,
  Oracle_Flag,
  acl
);
  end loop;

-- finalizing
  UTL_HTTP.end_response(l_http_response);

EXCEPTION 
  WHEN UTL_HTTP.end_of_body 
    THEN UTL_HTTP.end_response(l_http_response);  
END;
/
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;My issue is with the line "Photo       := json_ext.get_string(json(l_list.get(i)),'Photo');"&lt;br /&gt;
I tried to read the documentation and I found exmaple 13 and 14 somewhat related, but I could not figure out how to use it if only one field is base64 and not the entire json_list.&lt;/p&gt;
&lt;p&gt;Many thanks for your help&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Haytham Alzeini</dc:creator><pubDate>Wed, 26 Nov 2014 10:58:28 -0000</pubDate><guid>https://sourceforge.netcabc4f5e3d2baf489ae1c1f70d24ad532d6e0822</guid></item><item><title>Home modified by LewisC</title><link>https://sourceforge.net/p/pljson/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Welcome to your wiki!&lt;/p&gt;
&lt;p&gt;This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: &lt;span&gt;[SamplePage]&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;The wiki uses &lt;a class="" href="/p/pljson/wiki/markdown_syntax/"&gt;Markdown&lt;/a&gt; syntax.&lt;/p&gt;
&lt;p&gt;&lt;h6&gt;Project Members:&lt;/h6&gt;
&lt;ul class="md-users-list"&gt;
&lt;li&gt;&lt;a href="/u/henrycollins/"&gt;Henry&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="/u/jkrogsboell/"&gt;Jonas Krogsboell&lt;/a&gt; (admin)&lt;/li&gt;&lt;li&gt;&lt;a href="/u/lewiscunningham/"&gt;LewisC&lt;/a&gt; (admin)&lt;/li&gt;&lt;li&gt;&lt;a href="/u/borgerluo/"&gt;borger luocy&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;&lt;span class="download-button-51a4fa2f5fcbc945b5fc9706" style="margin-bottom: 1em; display: block;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">LewisC</dc:creator><pubDate>Tue, 28 May 2013 18:40:51 -0000</pubDate><guid>https://sourceforge.net06813e7bda95843298594fdcea5f8dcf3ede5b4b</guid></item></channel></rss>