Using ms-appdata:///Local/ In Adaptive Cards - c#

I have been using adaptive cards in the Windows 10 timeline and up to now have been getting the backgroundImage from a URL which works fine. I would like to know if it is possible to switch to using a local image stored in the LocalStorage folder of my UWP app but when I change the backgroundImage to ms-appdata:///Local/Card.jpeg the image does not display and the file is 100% in the directory as it is used fine in the application itself.
Anyone have any ideas and managed to get this working using ms-appdata?

All Timeline UserActivities must be HTTP images today. A primary function of UserActivities is to roam across devices, and there is no guarantee that a given app (and its associated local images) would be available on a device. As an example, Microsoft Launcher recently added support for Timeline.
The Adaptive Cards team is looking to improve this situation by adding support for "data-URIs", which are base64 encoded images directly in the payload. This feature is being implemented now but won't roll out to Timeline until a future release of Windows. Please let us know if this addresses your needs or post any other suggestions on the team's GitHub.

I've tried it as well. Adaptive cards don't work with ms-appdata:///

Related

Adaptive Cards: Slack downrendering of AdaptiveCards not working

We are using AdaptiveCards.We have this working in both channels (Slack and Web), even in slack the adptive card appear as an image while web mode appears in text.
Since this week, slack adptive card is not working, whenever we make a request to show the card it appears the space of the image but the image does not have any content.
I already request support, but regarding I need to close this, I would request if someone face the same problem and how to solve that.
We are using last version of BotBuilder: 3.12.2.4
GitHub Issue
Thank you
This is a known issue discussed at https://github.com/Microsoft/AdaptiveCards/issues/985. It seems a Windows update affected the WPF rendering used by Adaptive Cards, thus sometimes it fails delivering a blank image.
The Adaptive Cards team is still managing the rollout and patching.
Update 12/6
This is now fixed.

How to access camera on a windows tablet or attached web cams using Windows Form Application (Not WPF)?

I am trying to develop a Windows Form Application (not WPF) where I would require to preview numbers of cameras available on a tablet or PC, take pictures and then save the pictures in the device.
I am very new to this kind of application development and recently came accross Media Capture but I can not find a good lead to start with.
Can anyone let me know how to approach or how can I build the application with the aforementioned features or provide a good lead??
P.S. Found a good example on https://code.msdn.microsoft.com/windowsapps/media-capture-sample-adf87622/ but it uses XML not the Win Form Application type.....
What kind of cameras do you have? If the cameras support onvif, then there is a good onvif camera software you could try. You can handle many cameras with it, you can take snapshots so I guess it could work for you.

Launch IOS Bar Code Scanner From Web Link

I am adding Code 39 bar code scanning functionality to a C# asp.net web app. This function must work with iphone, ipad, android phone, and android tablet. I need the scanned bar code value to be passed back to my web app.
So far I have been able to make this work on android phone and android tablet using ZXing barcode scanner with this method. Unfortunately the current version of ZXing in the App Store (Version 1.1) is currently not capable of scanning 1D bar code types. Through much of my research I have seen that 1D barcode scanning has been ported to later IOS ZXing versions but I'm not an IOS developer and am unsure how to install or enable it.
I have also explored the possibility of using pic2shop's web solution but this only works with UPC and other commercial codes and the bar code must be Code 39 based on my clients requirements.
I have clients all over the country so I can not physically be on site for each one so I need all of the complexity to be on me in my code not on the end user. I realize that the IOS solution will probably not be the same as the droid but I need it to feel as close as possible for the end user because a few of my clients will be using multiple devices and I need to minimize the confusion.
I realize that I have a tall order with a lot of restrictions but any thoughts would be greatly appreciated.
I ended up using CNS Barcode for IOS devices. CNS is a good solution, it does everything that I need but it is not an ideal solution for two reasons:
It is not free. I have no problem with paying for apps, I think that a developer deserves every penny. In my case though this caused an inconveinence to my clients. The small cost is irrelevant when factoring in the benefit of the new functionality but it's hard to sell a product to a client then tell them to make it work you will need to buy this other product.
CNS does not return the result to the calling window/tab, it opens a new tab. In my case this is a problem because the barcode scanner is being used to scan id badges to clock in or clock out employees and may be done 50 times meaning 50 tabs opened.
I was able to create a solution for number two by creating a local key-value storage instance on the new tab along with a key-value change listener on the old tab:
window.addEventListener("storage", onStorageChanged, false);
function onStorageChanged(e)
{
if(/*check for appropriate key-value*/)
{
window.Close();
}
}
Note: This solution may have to be modified to pass the actual barcode result in the local key-value storage instance back to the original tab and use window.Close() to close the new tab if the original tab was not opened via javascript, which is probably more often the case, because window.Close() does not work for windows that were browsed to naturally (not opened with javascript).
Since the number 1 concern is only an inconvenience and the number 2 concern is fixable I will mark this as solved.
Here is another place I found that does it.
http://codecanyon.net/item/mobile-upc-scanner-with-web-proxy-api/10193177

using webcam & taking high res (2Mpix) pictures in a web application

I need a web based application where the user needs to fill in 3 fields and taking a high resolution image (2mpix) with a webcam. Once these are ready I need to post them to the server so they are saved in a database.
1) What is the best way/tools available?
2) I saw thisjquery webcam plugin - is it possible to capture photos through your webcam up to 1920×1080?
Thanks
The quality of the pictures you take with ANY camera depends on the sophistication of the camera.
Cameras have maximum resolutions and settings to configure them to a lower one as needed.
If the webcam on the machine has a resolution as high as the one you need, you'll probably be able to do this.
And its worth mentioning that the jquery webcam plugin requires flash to be available on the machine.
Since you've tagged this question with the ".net" and "c#" tags i guess i should mention that you can access the webcam via a silverlight app as well.

Reading Microsoft tags

You guys are probably aware of Microsoft Tags.
We have a barcode gun in our office and I would like to read these tags using C#.
Any idea how I can go about doing this?
Thanks
The Microsoft Tag initiative is based around image recognition, a barcode gun won't have any idea of what to do with a 'Tag', but you can use your phone camera. There's a sample app in the Apple App Store if you have an iPhone, not sure if they've written a version for Windows Mobile yet.
The principle is that you can resolve the tag to a short alpha-numeric code (think GUID but smaller) and then look that up using Microsoft's register of tags, using Web Services.
The question is why?
There have been companies spruiking this for years and it just doesn't make sense.
I'd rather have an application that read a URL from a photo, OCR'd it and then punched it into a browser for me. That way you get the ability to click and view, but you don't need a phone in your hand to write down the URL. They're all striving for a vendor lock in.
Call me a luddite or blind to the way of the future but I just don't see this as a "killer app".

Categories

Resources