Nativescript send image post httpclient - image

I should send a selected image via the nativescript-image-picker plugin but I can not understand how to do it.
I am using HttpClient and I have inserted in the header "Content-Type": "multipart / form-data".
The image is already saved on the device since I am selecting it from the gallery so I would like to avoid saving it again.
Could you explain how to do it?
I would not use the nativescript-backgrund-http plugin.
Thanks in advance

ok. I solved using the nativescript-background-http plugin as others suggested.
I have not found another solution at the moment. I hope they solve this problem early on by implementing it in HttpClient.
Thank you all.

Related

The Swagger UI doesn't work when "spring.resources.static-locations" is used

I would like to ask for your help regarding the following problem.
Unfortunately, the Swagger doesn't work, I get 404 page not found exception (http://localhost:8080/swagger-ui.html) when I use "spring.resources.static-locations" to specify the UI.
Does anybody face this problem? Could you help how I can manage this issue?
Thanks for your help in advance
If you are still dealing with this issue, I recommend this approach:
spring.mvc.static-path-pattern=/swagger*
I similarly had issues with using static-locations, but static-path-pattern allowed Swagger to work without disrupting my exception handling.

Could not load file or assembly 'System.Net.Http.Formatting, Version=5.1.0.0'

I'm facing this issue while trying to call my bot via directline:
As you can see on the image below, my webapi bot project is using the version 5.2.4.0, but according to the log error, the Microsoft.Bot.Conector is trying to use an old version of it ?
Does anybody have a clue on how can I solve it ?
Adding a binding redirection as #Eric suggested worked fine.

Glimpse.MiniProfiler plugin not showing duration

When I use MiniProfiler plugin for Glimpse, the duration column is not showing anything.
What could be missing? Anyone experienced the same?
I'm the developer behind this plugin.
The problem is that the plugin is collecting data before the request ends. The thing is that it's not obvious how to collect data in that situation and I'm working on that.
I'll update this answer when I fix the problem.
Ths ticket can be found here: https://github.com/mcliment/miniprofiler-glimpse-plugin/issues/2

Follow up - Configuring MODx Revolution to work with both http and https

This question is follow-up for this topic:
Configuring MODx Revolution to work with both http and https.
For even more details see this
MODX forum post
I face the same problem as described there and I use suggested solution. Just in my case I found the situation when it does not work.
I use MODX extra called FormIt (you probably know it) - it processes the forms and then redirects to 'thank you' page. What I have problem with is this redirect. It also uses makeUrl() but the snippet mentioned in the original post does not help here because in FormIt class the whole context config is regenerated, so site_url contains again [[++url_scheme]] and redirect ends in address like:
https://www.example.com/[[++url_scheme]]www.example.com/[[++url_scheme]]www.example.com/thank-you-page.html
instead of
https://www.example.com/thank-you-page.html
I wonder if you could know about some workaround, please?
thank you in advance!
Succeeded to resolve the issue.
What helped was to create new hook which does something like:
$modx->config['site_url'] = $modx->config['url_scheme'] . substr($modx->config['site_url'], strlen('[[++url_scheme]]'));
and then add this hook right before redirect hook in FormIt call

FBML based app suddenly stopped working since Nov.18,2011

My FBML based app suddenly stopped working since Nov.18.2011. It was working fine before that. And nothing has changed from our side. Could that be some of the new changes Facebookk put in on Nov.18 ( http://developers.facebook.com/blog/post/600/ ). Does anyone else has the similar problem? Any ideas on how to fix it?
Thanks a lot!
My FBML app stopped working around this day too. The problem is that they switched to the new auth system, where instead of sending the fb_sig HTTP parameters to identify the user and verify that the request came from Facebook, they now send one single parameter called signed_request. Which language/library are you using to interface with Facebook? See https://developers.facebook.com/docs/authentication/signed_request/ for more details on this new signed_request parameter.

Resources