Category : node.js

I’m trying to send some data which contains the image to node microservice from frontend web platform. this is my js $.ajax({ url: api_service_url, type: "POST", data: payload, dataType: ‘json’, processData: false, contentType: false, timeout:10000, headers: some_headers }).done((api_response) => { do something by api_response }) HTML of input file <input type="file" class="display_picture" accept=".png, .jpg, .jpeg"/> ..

Read more

created a simple crud application on nodejs and mysql. but have one problem, cant display the date without time and in the proper format. { "id": 1, "name": "Rick Sanchez", "dob": "1960-05-20T19:00:00.000Z", "phone": "84351548898", "comments": "Genius in the galaxy" }, in the phpmyadmin, the date in the dob i chose as the datetime format. Source: ..

Read more

I’m building a checkout that need credit-card 3DES-CBC encryption, but I am getting different result on PHP and NodeJS. PHP code: <?php $postfields = array( ‘CartaoNumero’ => ‘0000000000000000’, ‘CartaoMesAno’ => ’00/0000′, ‘CartaoSeg’ => ‘000’, ‘CartaoNome’ => ‘Name Lastname’, ‘IdentFatura’ => ‘companyName’, ‘Valor’ => ‘100’, ‘NomeCliente’ => ‘Name Lastname’, ‘EmailCliente’ => ‘[email protected]’, ‘CpfCliente’ => preg_replace("/[.-]/", "", ..

Read more