It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
How can I fetch an image from a URL in c++ and store it on harddisk?
Thanks.
I am working in the openGL environment in c++ so that code is not related to my question.
All i want to do is fetch some image from a URL and store it on my hard disk.
Which is the Google Map static map API which i want to use to fetch the image and store.
Sample request URL would be:
http://maps.google.com/maps/api/staticmap?center=Brooklyn+Bridge,New+York,NY&zoom=14&size=512x512&maptype=roadmap
&markers=color:blue%7Clabel:S%7C40.702147,-74.015794&markers=color:green%7Clabel:G%7C40.711614,-74.012318
&markers=color:red%7Ccolor:red%7Clabel:C%7C40.718217,-73.998284&sensor=false
C++ isn't PHP and has no means to do that itself. You'll have to use the platform API at least (to open a socket, which isn't a part of the C++ standard), and better yet, use a third-party library — for example, with Qt you could do that in a few lines.
You could use a library such as libcURL.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am developing a licensing block for a project, the QT desktop program creates a product ID and the user must enter this ID in an asp.net web site to produce an Activation Key, this activation key contains some information that needed to activating the product, and must be decrypted in QT desktop program.
What I need is a cryptography library or just one algorithm to can encrypt information in ASP.net and Decrypt it in QT(c++) or vice verse.
Can any one please guide me?
Those algorithms aren't oriented for any specific language. Just get a some crypto library in ASP, some crypto library in c++, and simply encrypt in ASP and decrypt in c++...
As long as libraries are following correctly algorithm's specification, it won't be any problem.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I have made a Django Application using Python and HTML. And using the Hijax scheme, I have written the server-side logic but now I want the client-side code to be maintained using the Backbone framework for Javascript. I tried searching for several tutorials for designing it using Backbone but I am not clear how to approach it. Please help!
I would recommend to take a look at this project available on GitHub. Please read also this article from Dugan Chen. Both are using Backbone.js, Django and the Hijax scheme.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I'm developing a Linux application that needs to save some sensible data in order to reload them when the machine reboot.
So I'm investigating on how to save somewhere my data and protect them.
(Obviously there will be always a possibility to crack it)
My goal is not to reinvent the wheel, so if there is a working solution, that's what I'm looking for.
Add a dedicated user for your application and set proper directory attributes. So other users can't see the directory and files, only root.
Use a simple scramble algorhythm just to make the file hard to read by a simple cat.
Never store passwords, and other sensible information in files.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
It is possible to download a file from an URL with C++ WITHOUT ADDING external resources, like libCURL? Thanks in advance!
It sure is. But it takes a lot of time.
BTW, why don't you want to use libCURL.
Sure, because libCURL is written. What you need is to implement it yourself. Check socket programming for that.
If you read the C++ standard, there is no standard library for networking as of today. There are however plans to include such a library in future versions of the C++ standard.
SG4 (Study Group responsible for networking library) has recently set up a wiki on Github
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
Does anybody know where I can find a Public Restful Web Service for PDF Generation? If so, do you have any experience using it (is it reliable/fast etc if commercial)?
The service needs to be able to take in any number of formats and return a PDF document.
EDIT: Please refrain from commenting or answering unless you know what a RESTful web service is and does. The comment war below was due mostly to my assumption that this was generally obvious to present-day programmers.
Here's one: pdflayer API
I've also created my own in the past, using Sun's Star Office Server (now Oracle Open Office Server, I think). The pricing is ridiculous, of course.
Not REST specific, but if you want to convert html documents or strings to pdf, please note that complex css-based formatting rules can be problematic in places.
Maybe some experts can bet it right, but that was my experience a few years ago.