Solved

dynamically create qrcode in asp.net web application

Posted on 2014-11-05
10
176 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

770 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