Solved

dynamically create qrcode in asp.net web application

Posted on 2014-11-05
10
183 Views
Last Modified: 2014-11-10
i want to create a web application in .net which creates the qrcode dynamically taking the data
0
Comment
Question by:madhavi N
  • 4
  • 2
  • 2
  • +1
10 Comments
 
LVL 33

Expert Comment

by:ste5an
ID: 40428435
What is your problem?
0
 
LVL 30

Expert Comment

by:Alexandre Simões
ID: 40428594
You can use this library: http://qrcodenet.codeplex.com/

It basically generates an image or a stream with your QR Code.
0
 

Author Comment

by:madhavi N
ID: 40429902
I  don't want  to store the image.I want to generate dynamically with web application
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 30

Expert Comment

by:Alexandre Simões
ID: 40430040
You don't need to store it, but you can and probably should cache it.

Anyway, as this library also returns a stream, you can return an image directly from memory.

The best way is to do this logic in an http handler that receives whatever makes sense, like an item ID, and returns an image.
0
 
LVL 33

Expert Comment

by:shalomc
ID: 40430968
How about using the google chart API?

Your ,net will have to url encode the text, and pass it a parameter to the google API.
For example, the following QR code is a link back to this question

http://chart.apis.google.com/chart?cht=qr&chs=300x300&chl=http%3A//www.experts-exchange.com/Software/Server_Software/Application_Servers/.Net/Q_28551019.html%3Fcid%3D1752&chld=H|0

You can embed it directly into your html
0
 
LVL 30

Accepted Solution

by:
Alexandre Simões earned 500 total points
ID: 40431003
@shalomc idea works and is much faster to implement.
I guess I just wouldn't rely on an external service for this.

I just went to check if the Google API still has the request limits but apparently not, so you're safe :)
https://developers.google.com/chart/image/docs/making_charts
0
 

Author Comment

by:madhavi N
ID: 40432004
Thanks for the respone
0
 
LVL 30

Expert Comment

by:Alexandre Simões
ID: 40432471
But is there a problem?

Still any doubts?
0
 
LVL 33

Expert Comment

by:shalomc
ID: 40434396
I expected to also get some points :((  Never mind, glad there is a solution.

Cheers
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will learn how to count occurrences of each item in an array.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question