Solved

dynamically create qrcode in asp.net web application

Posted on 2014-11-05
10
164 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 32

Expert Comment

by:Stefan Hoffmann
Comment Utility
What is your problem?
0
 
LVL 30

Expert Comment

by:Alexandre Simões
Comment Utility
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
Comment Utility
I  don't want  to store the image.I want to generate dynamically with web application
0
 
LVL 30

Expert Comment

by:Alexandre Simões
Comment Utility
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
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 32

Expert Comment

by:shalomc
Comment Utility
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
Comment Utility
@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
Comment Utility
Thanks for the respone
0
 
LVL 30

Expert Comment

by:Alexandre Simões
Comment Utility
But is there a problem?

Still any doubts?
0
 
LVL 32

Expert Comment

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

Cheers
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Error viewing ASP page 12 71
WEB Farm 6 21
Showdialog 8 20
SQL to update characters in table column 6 25
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…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
The viewer will learn how to count occurrences of each item in an array.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

771 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now