How to read barcode from camera using coldfusion? - html

I need to create a bootstrap web page that will allow the user to read a barcode from the camera.
I am using Coldfusion but I can't seem to find any resource to help read the barcode from the camera.
Ideally the user clicks a button to open the camera and read the barcode then submit it to an API.

If you are using CF for a web app, then you will have to add code to your web page to get permission to use the camera. Here is some information on that:
https://developers.google.com/web/fundamentals/media/capturing-images/
or this:
How to access a mobile's camera from a web app?
Then you store the image in a form Input and submit it back to CF. Use the CfUpload to put the picture into a local file. After the image is received, use a library like Zxing to decode the image https://github.com/zxing/zxing
Does that help?

Related

Is there a way to access the HTML of an In App Browser (Themeable Browser)

I am using the ionic framework and would like to be able to read from the HTML from the current webpage and then send the selection back to my application.
I have the Theme-able Browser Plugin setup and can use it like any other web browser.
I have tried looking at ways to include my own script with the .executeScript() function but no luck.
I have also tried to read data from custom buttons that I have inserted into the tool/nav bar but that gives me the HTML of my application.
TL;DR: (Basically want access to the DOM of the current webpage and have the user use native selection to read the document.getSelection() and send that text back to my application.)
Any help would be highly appreciated.
After browsing the forums on Ionic I found the solution:
browser.executeScript({code:'window.getSelection().toString();'}).then((selection)=>{
packet.text = selection[0];});
This allows me to get the selection.

Embed webpage in libgdx

My teammate is writing a form, she could use Libgdx input but prefers to write an html form.
Is there a way to write php/html or jsp form and embed it libgdx? or use ifram or similar to display it? And when the user submits, he gets redirected to Gamescreen
So far away, it's not possible. The only thing that you can do is to make a link to an URL. But it will opened in the device default browser.
For more infos: https://github.com/libgdx/libgdx/wiki/Networking -> Gdx.net.openURI(String URI)

Link to and display an image on an Access 2013 App view

I am using Access 2013 with our enterprise Office 365 Sharepoint site to create a simple Access App. I'm unsure of all the terminology--the main point is that this is an Access App as opposed to a desktop application. I am wondering if there is a way to display an image on a list view, where the image source is a data field. Here's what I can do so far and where I get stuck:
I can add a picture control. I can set the picture to a permanent URL that displays just fine in the view. However, this is a permanent setting for the view of any record.
I can add a URL field to the table. It's easy to pick the URL in datasheet view, and on list view, it's difficult to change the URL, but clicking on it will pop up the image (or whatever link) in a new tab or window.
I can create a Web Browser Control. I can have this control source be the URL frame. When I look at this view using an IE browser, I get something that looks like an iFrame. However, no matter what URL I try, the content will not load.
More clarification here: Depending on whether I try Flickr or an image hosted on my own OneDrive, I get different errors. One of the errors I get (tyring to use my own OneDrive with publicly shared image) is: "To help protect the security of information you enter into this website, the publisher of this content does not allow it to be displayed in a frame."
More information: If I link to a publicly shared image from Google Drive, then the Web Browser Control does in fact show the image. This is not ideal, and I'd rather be able to dynamically change the link for the Picture Control, as opposed to embedding web content.
This is where I am stuck on two avenues. (A) The Web Browser Control will not show any content (maybe this is a security setting of my institution's Sharepoint 2013?). And (B) I cannot figure out how to dynamically change the URL for the picture control. Option B may be possible with a macro, but macros in Access Apps are different than desktop version and much more limited in capability. And I'm not good at either set of macros. Thanks for any ideas!

Printing images/pages from web browser control

I have a form that pulls a static map from google maps in the web browser control (access 2010). The format of the image is .png. I need for this map image to print when I print the forms.
Can I somehow save the image (embed) with the record? Link an image control to url? Use XML to grab the file from the web and store in the database?
I'd rather not have to download/link to the images each time. I'm running out of ideas and the web is coming up empty.
Here is an example URL
http://maps.google.com/maps/api/staticmap?center=37.386052,-122.083851&zoom=13&markers=37.386052,-122.083851&size=500x300&sensor=false
and this is the image link/xml
<img style="-webkit-user-select: none" src="http://maps.google.com/maps/api/staticmap?center=37.386052,-122.083851&zoom=13&markers=37.386052,-122.083851&size=500x300&sensor=false">
Thanks for any advice/tips!
You could try downloading the image separately from the web browser control. As access can't do this natively, have a look at this...

Including content of URL in Swing Application or CGI Script in Swing

I have an ip camera and I want to get the stream into my swing application. Since there seems not to be any streams available, the only option I have is the display the whole website or the cgi script.
The URL for the cgi script looks like this:
http: //IP/videostream.cgi?user=gast&pwd=
Is there a way to display the content to a swing container including refreshing the content? I will ask the company of the ip camera as well if there would be a stream available to caputre.
The current view of the Cam is often included as an Image-Tag in the HTML-Side. You can download the Html Source an extract the Image URL. Now you can create an URL object in Java and download the Image from the URL Inputstream. You can convert the received bytes to an Image by using ImageIO.