Posts

Showing posts from June, 2014

jquery - Scroll To Top On Page Load (HTML) -

i have tried both onload="window.scrollto(0,0);" , onload="$('html,body').scrolltop(0);" after page loads still stays @ current position, using frames. have tried of other suggestions still no luck please point me in right direction. need add scroll top frame? need page contains frame reload when frame inside reloads, hope makes sense. <body onload="window.scrollto(0,0); $('html,body').scrolltop(0);"> <iframe id="my-iframe-tag" scrolling="no"> </iframe> </body> using scrolltop method on dom ready : $(document).ready(function(){ $(this).scrolltop(0); });

doctrine2 - Doctrine Entity not being included inside the Doctrine Events callback -

i have entities one-to-many relationship transactionitem -- has many --> payments edit: included mapping files payment.yml mapping file akademia\institution\sales\domain\model\payment\payment: type: entity table: payments repositoryclass: akademia\institution\sales\infrastructure\persistence\doctrine\payment\doctrinepaymentrepository id: id: type: string length: 36 fields: date: type: datetime amount: type: decimal precision: 11 scale: 2 manytoone: transactionitem: targetentity: akademia\institution\sales\domain\model\transactionitem inversedby: payments joincolumn: name: transaction_item_id referencedcolumnname: id transactionitem.yml mapping akademia\institution\sales\domain\model\transactionitem: type: entity table: transaction_items repositoryclass: akademia\instituti

tablet - Program keeps running as administrator -

whenever start paint tool sai user account control pops up. assume program starts administrator time, tablet doesn't seem work in sai if run sai admin rights. tablet works everywhere else, when switch sai doesn't, no reaction @ all, not hovering moves cursor. i've tried uncheck "run administrator" box in properties>compatibility apparently never checked. tried in registry , find runasadmin key, wasn't there, , guess there no value notrunasadmin. maybe there file configures sai ask admin rights. there else do? appreciated. sai favourite drawing software, , bums me out can't draw in it.

c++ - Using boost::mutex as a private member of class -

i have class contains boost::mutex private member. becomes locked when call 1 of public functions , unlocks when function exits. provide synchronous access object's internals. class stringdeque { boost::mutex mtx; std::deque<string> string_deque; public: stringdeque() { } void addtodeque(const string& str_to_add) { boost::lock_guard<boost::mutex> guard(mtx); string_deque.push(str_to_add); } string popfromdeque() { boost::lock_guard<boost::mutex> guard(mtx); string popped_string = string_deque.front(); string_deque.pop(); return popped_string; } }; this class isn't meant particularly useful playing around mutexes , threads. i have main() has function defined pops strings class , prints them in thread. repeat 10 times , return function. once again, purely testing purposes. looks this: void printthestrings(stringdeque& str_deque) { int = 0; while(i < 10) { string popped_string =

android studio - Watson API Call failing -

Image
doing api call android studio. there no errror when run @ adb, app stops saying "unfortunately app has stopped" can please see , tell doing wrong? much you have set workspace id application, understand? example: conversationservice service = new conversationservice("08-11-2016"); service.setusernameandpassword("{username}", "{password}"); messagerequest newmessage = new messagerequest.builder() .inputtext("turn on lights") // replace context obtained initial request //.context(...) .build(); string **workspaceid** = "**id conversation...**"; messageresponse response = service .message(workspaceid, newmessage) .execute(); system.out.println(response);

wordpress pagination doesn't show -

******edit******* this code posts: <?php if ( get_query_var('paged') ) { $paged = get_query_var('paged'); } elseif ( get_query_var('page') ) { $paged = get_query_var('page'); } else { $paged = 1; } query_posts('posts_per_page=3&paged=' . $paged); $args = array ( 'posts_per_page' => 3, $offset = $paged*$pages, 'post_type' => array('post','project'), 'meta_key' => '_thumbnail_id' ); the navigation numbers show, , goes page/2 new posts didn't show. i build local wordpress website test. add pagination in wordpress. pagination don't show up. code: $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1; $args = array ( 'posts_per_page' => 3, 'offset' => 0, 'post_type' => array('post','project'), 'meta_key' => '_thumbnail_id', '

java - How to rollback file writes when using Apache Camel transaction? -

i using multicast route in camel 2 pipelines. 1 pipeline adds data database , other write operations on file. requirement rollback complete process in case of failure or error. have rolled db insertions, not able find out way rollback write operations done on file. can me out rollback process. here route context: <routecontext id="s1route" xmlns="http://camel.apache.org/schema/spring"> <route id="sroute"> <from uri="activemq:queue:{{s.queue}}" /> <log message="message received myprocess queue ${body}"></log> <unmarshal ref="gsonunmarshelling"></unmarshal> <bean beantype="com.***.upload.***.getmybean" method="process(com.**.upload.beans.myevenets,${exchange})" /> <log message="multicasting data ${body} file system , database" /> <multicast parallelprocessing="true

Are Java 8 lambdas compiled as inner classes, methods or something else? -

this question has answer here: how java lambda functions compiled? 1 answer i have read article today regarding lambdas: http://www.infoq.com/articles/java-8-lambdas-a-peek-under-the-hood the article suggests, lambdas are not implemented anon inner classes (due performance). gives example lambda expression can compiled (static) method of class. i have tried simple snippet: private void run() { system.out.println(this); givehello(system.out::println); } private void givehello(consumer<string> consumer) { system.out.println(consumer); consumer.accept("hello"); } and output : sample.main@14ae5a5 sample.main$$lambda$1/168423058@4a574795 hello so it's not same instance. it's not central "lambda factory" instance either.. how lambdas implemented then? the expression itself, assuming pass actual l

javascript - firebase: pass data from provider to page -

Image
i have provider courses-data.ts , have functions called getcourse(department:id:any). data firebase , want pass coursesa array in courses-page.ts , don't know how that. that's photo i want pass left side (courses-data.ts) right side(courses-page.ts). guess wrong code. that's firebase structure i'm trying pass child of each courses(java , math) array.

javascript - InvalidStateError in firefox private navigation mode -

Image
using basic example provided here : https://developer.here.com/javascript-apis/documentation/v3/maps/topics/quick-start.html when loading "complete html example page" in firefox private navigation mode, browser console logs 3 "invalidstateerror" exceptions coming mapjs-core.js. seems related indexeddb it's hard js code obfuscated. apart of exceptions, seems work fine, wonder if can have consequences on other features of here api. there way prevent exception ? the invalidstateerror indeed related indexeddb , , see error because, currently, firefox private browsing mode not along indexeddb . see this bug mozilla bugtracker reference. on here wego app, 1 can see state of map, last position, recent searches , others, stored in localstorage object. i've yet find stored in indexeddb database, therefore wouldn't worry much, if consider if user browses map in private mode, doesn't expect recover state after reopening browser.

android - Why doesn't gradle tasks show group or description when using exec? -

my gradle task stopped showing group , description in ./gradlew tasks , since i've added exec {} in root build.gradle . what's going on, , how back? task dosomething << { group 'yourgroupname' description 'runs bash script' exec { workingdir "$projectdir/../pathto/" commandline 'bash', '-c', './bashscript.sh' } } everything else works. you cannot configure group , description in dolast() closure this code task dosomething << { exec { workingdir "$projectdir/../pathto/" commandline 'bash', '-c', './bashscript.sh' } } is same task dosomething { dolast { exec { workingdir "$projectdir/../pathto/" commandline 'bash', '-c', './bashscript.sh' } } } in following group , description not taking account task dosomething

php - Laravel add data to MySQL -

project on laravel 5.3, collecting data in session multiple pages , want add mysql. problem data doesn't inserted mysql created_at. data in variable, doesn't go saved in mysql. model: class post extends model { public $vardas, $pavarde, $miestas, $amzius, $telefonas, $pastas, $q1, $q2, $q3, $q4; protected $fillable = ['vardas', 'pavarde', 'miestas', 'amzius', 'telefonas', 'pastas', 'q1', 'q2', 'q3', 'q4']; public function addtodb($vardas, $pavarde, $miestas, $amzius, $telefonas, $pastas, $q1, $q2, $q3, $q4) { $answer = new post; $answer->vardas = $vardas; $answer->pavarde = $pavarde; $answer->miestas = $miestas; $answer->amzius = $amzius; $answer->telefonas = $telefonas; $answer->pastas = $pastas; $answer->q1 = $q1; $answer->q2 = $q2; $answer->q3 = $q3; $answe

javascript - Parallax scrolling and fixed footer code causing width issues -

i bolted bits of code. 1 parallax scrolling, , other piece of fixed footer code found here: http://codepen.io/madshaakansson/pen/cgjch though after bolting , fixing few issues, have problem different widths. header different width footer, , main content doesnt span whole width of page. have tried adjusting width of content css 100%, made main content span whole width, ended breaking footer. i not sure need change make these different bits of code work together. advice appreciated. my attempt: http://codepen.io/dingerzat/pen/qgbwkk html /*global define: false */ function init() { window.addeventlistener('scroll', function(e) { var distancey = window.pageyoffset || document.documentelement.scrolltop, shrinkon = 300, header = document.queryselector("header"); if (distancey > shrinkon) { classie.add(header, "smaller"); } else { if (classie.has(header, &qu

output - Setting name and path of mex file in MATLAB script -

i want control path , resulting file name of mex file. this how build command looks @ moment: sourcefilepath = [tempname,'.cpp']; libdir = ['-l' libdir]; libname = ['-l' libname]; headerdir = ['-i' headerdir]; mex(headerdir,libdir,sourcefilepath,libname); this works fine. want use custom mex file name , custom path. i saw in official docu there options -outdir , -output . tried @ in similar way: outputdir = ['-outdir ' tempdir]; mex(headerdir,libdir,sourcefilepath,libname,outputdir); i tried without space. error: error using mex unknown mex argument '-outdir c:\users\selmao~1\appdata\local\temp\'. same problems appear when try use -output option. any ideas? in advance! strange. if set option inline works. if set it, before, whole variable not. mex(headerdir,libdir,sourcefilepath,libname,'-outdir',tempname); this might others.

python 2.7 - Django-REST-Framework "GroupBy" ModelSerializer -

i have following situation class mymodel(models.model): key = models.charfield(max_length=255) value = models.textfield(max_length=255) category = models.charfield(max_length=4) mode = models.charfield(max_length=4) the fields key , category , mode unique together . have following objects: m1 = mymodel(key='model_key', value='1', category='cat_1' mode='mode_1') m2 = mymodel(key='model_key', value='2', category='cat_1' mode='mode_2') m3 = mymodel(key='model_key', value='1', category='cat_2' mode='mode_1') m4 = mymodel(key='model_key', value='2', category='cat_2' mode='mode_2') i want expose api group key , category serialized data this: { "key": "model_key", "category": "cat_1" "mode_1": { "id": 1, "value": "1" } &quo

r - Selecting columns from data.table -

this question has answer here: extract column data.table vector, position 1 answer i trying select single column datatable. need array of values, , not data table single column. currently casting data table dataframe, select desired column. ideas how can directly? df = data.frame(a = 1:5, b = 6:10) class(df[,'a']) # integer - (desired format) class(df[,1]) # integer - (desired format) dt = data.table(df) class(dt[,'a', = f]) # "data.table" "data.frame" class(dt[,1, = f]) # "data.table" "data.frame" # cast dataframe , select class(as.data.frame(dt)[,'a']) # integer - (desired format) you can try : class(dt[,a]) # integer

c - Is using streams over pipes under Linux worthwhile? -

when using pipes communicate between processes under linux, there benefit creating streams pipes using fdopen , using fread / fwrite on streams instead of read / write ? standard input/output (stdio) fdopen part of stdio library. stdio manual , this: the standard i/o library provides simple , efficient buffered stream i/o interface. input , output mapped logical data streams , physical i/o characteristics concealed. functions , macros listed below; more information available individual man pages. and then: the stdio library part of library libc , routines automatically loaded needed compilers cc(1) , pc(1) . synopsis sections of following manual pages indicate include files used, compiler declaration function looks , external variables of interest. being part of libc , means programs written using these functions compile in standard-conforming compilers. if write program using

ios - xcode >= 8 cannot compile my objective-c library -

i'm trying compile objective-c library xcode (or xcodebuild) seems xcode taking last 2 numbers of "base sdk" (10.1 in case) build setting : xcodebuild -scheme mylib -workspace mylib_objc.xcworkspace -sdk "iphonesimulator10.1" build output error : /bin/sh -c /users/user/library/developer/xcode/deriveddata/mylib_objc-dcainaehwbdhdeeyoykilqflodnx/build/intermediates/mylib.build/debug-iphonesimulator/mylib.build/script-aedfee9b1b25c0fd00756827.sh xcode has selected sdk: iphonesimulator version: 0.1 (although back-targetting: 7.0) ...therefore, other_sdk_to_build = iphoneos0.1 recursion: root ... recursing missing build targets now... recursion: ...about invoke: xcodebuild -configuration "debug" -project "mylib.xcodeproj" -target "mylib" -sdk "iphoneos0.1" build run_clang_static_analyzer=no build_dir="/users/user/library/developer/xcode/deriveddata/mylib_objc-dcainaehwbdhdeeyoykilqflodnx/build/products&qu

html - Modal box is not working inside navbar tabs (bootstrap) -

Image
i have been trying lot of times still no use not able display modal in navbar tabs. when click on blur triggered. can please me? my template, addnewrecord() { $('#editmodel').modal('show'); } <div class="col-xs-12"> <div class="row"> <div class="col-xs-12"> <div class="tabbable tabs-left mb-lg"> <ul id="tabs2" class="nav nav-tabs"> <li class="nav-item"><a class="nav-link" href="#tab1" data-toggle="tab">home</a> </li> <li class="nav-item"><a class="nav-link active" [routerlink]="['/app/tables/basic']" data-toggle="tab">chatter</a> </li> </ul> <div id="tabs2c" class="tab-content bg-info-light"> <div class="tab-pa

ios - How i know the index of Array object in NSCountedSet -

this code getting duplicate device contacts , want know how index of duplicate contacts nscountedset *set = [[nscountedset alloc] initwitharray:[contact valueforkey:@"emailaddress"]]; for(id name in set){ if([name isequal:[nsnull null]] || [name isequaltostring:@""]){ } else { array=[[nsmutablearray alloc]init]; duplicateemaildictionary =[nsmutabledictionary new]; if ([set countforobject:name]>1) { (int i=0; i<[set countforobject:name]; i++) { [array addobject:name]; } [duplicateemaildictionary setobject:array forkey:@"emailaddress"]; [finalduplicateemail addobject:duplicateemaildictionary]; } } } a set unordered pool of unique objects. since it's unordered, there no integer index can use access specific elements of set. if need index use nsarray .

asp.net mvc - MVC OpenId Microsoft Idenity GetExternalLoginInfoAsync null -

i trying implement microsoft identity in existing azure cloud service. cloud service consists of asp.net mvc 5 web role. using useopenidconnectauthentication middleware. the application succesfully redirects user microsoft signin page. after application prompts application's login page, , user not logged in. when check externallogincallback function in accountcontroller, value of authenticationmanager.getexternallogininfoasync() returns null. code in startup.auth.cs is: public void configureauth(iappbuilder app) { app.createperowincontext(applicationdbcontext.create); app.createperowincontext<applicationusermanager>(applicationusermanager.create); app.createperowincontext<applicationsigninmanager>(applicationsigninmanager.create); app.usecookieauthentication(new cookieauthenticationoptions { authenticationtype = defaultauthenticationtypes.applicationcookie, loginpath = new pathstring("/account/login"), prov

ios - ModuleName-Swift.h file not found in xcode8 -

i'm trying work on mixed swift , objectivec project no luck. my project made of 6 targets: app core coretest summary watchkit extension watchkit app i've been able add swift class has 1 target membership (app) , uses objectivec code passing app-bridging-header.h "objectivec swift code" paradigm works charm. instead, i'm struggling "swift objectivec code" paradigm. in specific case need use new swift class inside objectivec .m file member of 4 targets. what i've been doing far this: add new swift file core project specifying 4 memberships (app, core, summary, watchkit ext) xcode asks create -bridging-header.h 3 projects core, summary , watchkit ext (app-bridging-header.h exists since used previously), , consent (don't know why creates files inside same group folder add swift class nevermind) i create swift class adding @objc key before class i go check if objective-c generated interface header name set modules, , yes

kinect - 3D scan through 360 degree rotation and image registration with point cloud library -

is possible 3d scan of object taking multiple images every 1 degree around object , process images point cloud library (or other)? use robot arm, distance , angle of images reproducible. or need camera depth resolution kinect accuracy?

android - Passing View with Intent -

i want passing view to update view in other activity. code passing view . emp_photo_edit.setonclicklistener(new view.onclicklistener() { @override public void onclick(view v) { intent = new intent(intent.action_pick,android.provider.mediastore.images.media.external_content_uri); i.putextra("container", (serializable) viewdialog); ((employeeactivity)context).startactivityforresult(i, 2017); } }); then want update view in other activity @override protected void onactivityresult(int requestcode, int resultcode, intent data) { super.onactivityresult(requestcode, resultcode, data); if (requestcode == 2017 && resultcode == result_ok && null != data) { uri selectedimage = data.getdata(); string[] filepathcolumn = { mediastore.images.media.data }; cursor cursor = getcontentresolver().query(selectedimage,filepathcolumn, null, null, null

ruby on rails - "libgcc_s.so.1 must be installed for pthread_cancel to work" when starting thin on Debian -

i using thin development web server rails on debian 7. since i've updated rails 4.2.7.1 cannot launch thin anymore , i'm getting error message : using rack adapter libgcc_s.so.1 must installed pthread_cancel work aborted i have libgcc_s.so.1 file in /lib/i386-linux-gnu/ folder somehow thin cannot seems find there. i have tried every answer to question didn't help. edit: think problem related libv8 gem, dependency project. error shows when default 5.3.332.38.1 x86-linux version of gem used. if force version 5.0.71.48.3 x86-linux , error disappears.

java - Adding a values to a instance of ArrayList<Integer> can be only done sequentially -

after creating arraylist<integer> connectedto = new arraylist<>(); connectedto.add(0,4); connectedto.add(3,4); in above mentioned statement connectedto.add(0,4) inserts value 4 in zeroth position expected. but connectedto.add(3,4) throws java.lang.indexoutofboundsexception. why happening?. understanding arraylist suppose resize dynamically , allow insertions right?. is there way overcome this?. incase of python creating expression vertlist = {} vertlist[0] = 1 vertlist[2] = 3 allows me save values in various indexes without issues. how implement code perform's same operation. i afraid mismatching 2 different data types. {} dictionary, allows map values. on other hand, arraylist kind of list should initialize in python using [] . python code provided list won't working. suppose, add method have used adds element @ @ end of list. take @ one: in python, when use dictionary, list or set? this question , answers understand difference betw

Swift 3 incorrect string interpolation with implicitly unwrapped Optionals -

why implicitly unwrapped optionals not unwrapped when using string interpolation in swift 3? example : running following code in playground var str: string! str = "hello" print("the following should not printed optional: \(str)") produces output: the following should not printed optional: optional("hello") of course can concatenate strings + operator i'm using string interpolation pretty everywhere in app doesn't work anymore due (bug?). is bug or did intentionally change behaviour swift 3? as per se-0054 , implicitlyunwrappedoptional no longer distinct type. instead, it's same type regular optional – has attribute allows compiler force unwrap in situations cannot type checked one. as proposal says (emphasis mine): if expression can explicitly type checked strong optional type, be . however, type checker fall forcing optional if necessary. effect of behavior the result of expression refers value declared t!

amazon web services - Ansible use ec2 public ip of one play in another play -

i have following ansible playbook. --- - name: ansible playbook create new aws dev instance hosts: localhost roles: - aws - name: set dev server hosts: roles: - services in aws role, creating ec2 instance , registering ec2_instance . how use public ip of newly created instance in hosts of second play. should use hosts: ec2_instance.public_ip ? you may consider using add_host . put in first play (after getting ip of new vm): - name: adding new host in inventory file. add_host: name=somename ansible_ssh_host="{{your_ip}}" ansible_ssh_pass=*** groups=new_group and use group in second play: - name: set dev server hosts: new_group

java - Hibernate - same class with different tables -

i'm trying build app uses table each user. each user's table should contain 10k lines, don't want 1 big table information' prefer divide small tables. here example: @entity @table(name = "items") public class item{ @id @generatedvalue @column(name = "id") private int id; @column(name = "description") private string description; ... can somehow make multiple tables use same class , this? : items_user1 items_user2 ...

javascript - How to blocks user interaction with the underlying user interface while show loader in jquery? -

here's loader show in ajaxstart: $(document).ajaxstart(function () { $("#wait").css("display", "block"); }); $(document).ajaxcomplete(function () { $("#wait").css("display", "none"); }); css: .wait { display:none; position:fixed; z-index:1000; width:400px; height:400px; top:20%; left:35%; padding:2px; } my problem user can able interact background controls while show loader.i don't want user interaction controls. in advance. css .preloader-container { position: fixed; z-index: 1031; width: 100%; height: 100%; top: 0; left: 0; background: transparent; display: block; overflow: hidden; padding: 25%; } .preloader-center { position: absolute; padding: 15px; top: 10%; left:30%; -ms-transform: translatex(-50%)

javascript - Is it possible to create a multiline string? -

i´m trying create multiline string in google apps scrtip, in javascript: var temp = \`hello world!\`; i have text want analyze don't want pre-process it. is possible? if, example, had real long string extended out past right margin in code editor, , wanted put on multiple lines in editor don't need scroll right read it, still want string analyzed 1 long string, can use: var = 'some text\ more text here\ third line.'; the above text in variable a print 1 line. if want cause string wrap, in email, or dialog box, can use non-printing newline control characters \n var t = 'first line \nsecond line \nthird line'; the above string in variable t print on 3 lines. note did not put space after \n or next line start space. if using html, can use <br>

Nexmo inbound call forward to SIP not working -

i need forward inbound calls coming nexmo number sip address. have configured in number section, forward sip , added sip url there. if call 1 nexmo number via app works fine both inbound , outbound calls. if call at&t number , at&t number tries call in case not forwarding call sip address. can please tell me needs done in case. hope made clear.

ruby on rails - How to notify a user after background task is finished? -

i use rails activejob , sidekiq backend. when user come on page sidekiq create long-term background task, how can notice user (by render partial on web page) when task completed? rails , sidekiq work different processes. fact confused me don't understand how handle completed status using background job. activejob provides after_perform callback according docs work this: class videoprocessjob < activejob::base queue_as :default after_perform |job| usermailer.notify_video_processed(job.arguments.first) end def perform(video_id) video.find(video_id).process end end so, don't have worry integrate directly sidekiq or other queuing backend, talk activejob :)

java - My for loops does not re run input for in.nextLine? -

i trying create program takes in name , age , stores them in respected arrays. when program run, ignores line: personname[i] = in.nextline(); import java.util.arraylist; import java.util.arrays; import java.util.scanner; public class persons { public static void main (string[] args){ scanner in = new scanner(system.in); string[] personname = new string[9]; int[] personage = new int[9]; for(int = 0; < personname.length; i++){ system.out.println("please enter name: "); personname[i] = in.nextline(); if(!personname[i].equalsignorecase("done")){ system.out.println("please enter age: "); personage[i] = in.nextint(); } } } } any ideas? you have tried read integer value without reading entire line. change line to: personage[i] = integer.parseint(in.nextline());

Android recycvler view layout mismatch between preview and actual layout -

Image
i'm working on graduation work , prior including custom toolbar (for hamburger icon) , replacing listview navigationview drawerlayout menu items i've had no problems layouts @ all. preview , desired, expected result recyclerview and actual view on android device (letv x800 api21 if matters @ all) as can see gap between consecutive items huge , don't know source of problem. i'm using single activity xml contains frame container desired layouts loaded. fragment_car_cost.xml <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:fab="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/car_cost_view" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="left" android:orientation="vertical"> <sp

php - getting stdclass object out of array with base64 encoded string -

hello have array here std class object inside $imagez array(2) ( [0] => stdclass object { id => (string) 44 owner => (string) 675 relatesto => (string) userid name => (string) images.jpg type => (string) image/jpeg size => (string) 2424 image_heading => (string) ffffff image => (string) insert_dt => (string) 2016-11-08 13:08:25 update_dt => null orig_id => (string) 44 } [1] => stdclass object { id => (string) 45 owner => (string) 675 relatesto => (string) userid name => (string) masnad.jpg type => (string) image/jp... i use $images = json_decode(json_encode($imagez), true); odd reason not work, , returns $images null , if try in way $images = json_decode(json_encode($imagez[0]), true); still null value, me arrays without stdclass object. not sure why going wrong. base64 encoded strings containing string in image =>(string) for case better