Unable to store image in PouchDB--Ionic/angularjs/pouchdb - angularjs

I am working to collect and store personal info / pic locally on PouchDB using ionic/angularjs. Then i would sync remotely to a server at a later time.
However, i have an array to collect the info, but i do not know how to store the pic using same array although i am able to display it in pictureUrl. Please, i would appreciate your kind help.
NOTE: The pic needs to be stored immediately i snap and click save.

Have you read the PouchDB guide to attachments? There are lot of live examples in there of working with images and storing them in PouchDB, which you can test right in your browser. :)

Related

Working with json.net/vb or c# and Fiddler attempting to scrape content

I've been working on this for days now and just can not wrap my head around it.
Straight up I am trying to grab prices from a big box store and failing, I can get all other content using the htmlagilitypack no problem but they use a json api to display the price tag.
I am using Fiddler and I am seeing the flow of data. In the Fiddler results I can see the json content coming back with the prices and the header information being passed, but I just can't seem to put any code together that would remotely work to get the same data that Fiddler sees.
Please, any pointers would be greatly appreciated, or even some online tutorials. I don't expect anyone to work this for me, I just need a starting point.
This is the page I am trying to get the price from.
http://www.walmart.ca/en/ip/10321728
Just an fyi, this is for my own purposes only, I search daily for pricing on products on several different sites and I am trying to just display the pricing on my own localhost from a few different sites.

serving pictures from database using nodejs

I am working on a web app and I want to serve users some of their own pictures that I will have stored in a database. I have a profile page view were I have some jade template. I want to load the users pictures when they click on their profile but I do not know where to start with that (I am relatively new to node). I have tried using google but no useful answers have come up. How can I load the user specific pictures from a database using nodeJS?
Any help is appreciated, thank you.
Never store image into db. It's wrong. Store path, url or other, but not Image Binary.
Retrieve url that you have stored into db and put them into your final html.
M.

Capture and study the graphs/charts using selenium webdriver

I need to analyze the graphs on a web page with the help of Selenium webdriver. Here analysis means that we need to check whether the graph created by data is correct when compared with actual data available in the database. PFB the flow:
i. User clicks on a link, which then opens a page having some graphs (pie as well as bar charts).
ii. At the backend, the required data is fetched from the Database and passed in response to the application.
iii. This data is then passed on to a third party tool, protovis, which then converts the data into required graph and displays the graphs on screen.
Need to know whether it is at all feasible all or not to do this with Selenium webdriver (2.0). If no, then is there any other way by which this can be done?
Thanks in advance.
Maybe you could configure the driver to download the generated image and compare it with the data you have, but you will need some tool that could compare the image and the data.

Which service to create a screenshot of a html page on web app and save it?

I am creating a web app(run on linux, PHP). In this application, after users log in, they will able to generate a postcard with their name on it.
Since the page of postcard is html(generated by cakephp), I want to take a screenshot of the central part of that page and save as an image.
Please recommend me any tool/plugin in order to do so. Free service/plugin is prefered.
http://code.google.com/p/wkhtmltopdf/
I have used the pdf part and it works great, there is a wkhtmltoimage download there that should help you with what you asking.

Checkboxes disappearing when uploading to Google App Engine

I have written a controller to take input from the form containing a list of options. The options have to be selected using checkboxes. I have successfully tested the code on my local machine. But when uploaded to the app engine, the webpage is not displaying the checkbox fields. It is not displaying the options either. I tested with 3 browsers - IE, Mozilla and Chrome and this happens everywhere. But, everything is working on fine on the browsers when running on local machine. I am quite confused as to what is going wrong.
Please help me fix this issue.
Thanks in advance...
You likely need to setup static file/directory mappings in app.yaml.
You need to provide us with more details to help you debug issues. For example, if the browser doesn't display what you expect tell us what it does display. What happens if you view source? Is your HTML there?

Resources