How to create web services for uploading image in drupal 7 - web-services

Hello I am new in web services(Drupal 7) I want to know to create the web services for uploading images.I searched but could not find.I am using REST services.Please help me.

Using Drupal to upload images
Since Drupal 7 image handling is part of Drupal core, and there are responsive themes designed for smart phones, you don't need additional contributed modules to upload images from within drupal as a content contributor and your phone as a web browser.
Here is a short step by step:
Choose Administration > Add content > [Content type].
The image field will be displayed in the list of fields once you've
added it to the content type (see above). Click 'Browse', then
select and upload the desired image.
Enter alternate text to improve accessibility and optimize it for
search engines.
Save the article.
Images can be added and removed from the node's Edit tab. If the
node is deleted, all associated images are deleted with it.
Using Android to upload images
I believe this option would start as an architecture design decision and a price point. For example, you could use the Drupal Services module to open up REST and XML-RPC options from the drupal platform to your Android application. Next, you could choose to develop a native app for android to upload images into drupal's database for use in various applications. Or, you might consider a jQuery Mobile browser app that might be much simpler and less costly to build.
Two references:
Google I/O 2010 - Android REST client applications (to mate with Drupal's Service module) 1 hour video: http://www.youtube.com/watch?v=xHXn3Kg2IQE
Drupal 7 Mobile Web Development (A Beginner's Guide they jokingly claim), by Tom Stovall, Chapter 8: The Drupal Services Module for mobile apps): http://www.amazon.com/Drupal-Mobile-Development-Beginners-Guide-ebook/dp/B007K7UL2S

Related

Does anyone know if it's possible to put your Django Heroku apps onto App Store/Google Play?

I have several apps that i've written in Django and host on Heroku. The website address works great but if people want to use my app on their mobile device i have to instruct them to visit the website then click Add to Home Screen so an app icon appears on their phone. Is there a better way of doing this so they can just add the app from say the App Store/Google Play?
Yes you can add your PWA (progressive web apps) to Google PlayStore. There is detailed official documentation about this.
But in case of App Store Apple doesn't supports to put PWA on App Store. But there are different ways to achieve this PWABuilder is one among them. And also that doesn't guarantee that your app will be accepted into Apple’s App Store. In 2019, Apple released new guidelines for HTML5 apps in the App Store. The new guidelines appear to forbid certain kinds of web apps (e.g. gambling, lotteries, etc.) from the iOS App Store.

OpenCart - Can I access data externally?

I have a project in mind for a desktop aplication that interacts with e-shops directly. My goal is to create an application that uses the e-shop´s table and presents it to the shop through this app.
Before I get too into it I want to find a shoping cart software (preferably the oneclick installs that many webhosts offer) that will let me access it´s tables and modify/read/write at will without going throught the website.
Could I do this with OpenCart?
if not which way should I shoot?
Thanks in advance
Normally this is not possible unless You'd stick directly with some DB administration tool that will connect directly to the database server. There are some options though:
write an API for the desktop application - it could be based on web services - that the desktop application will comunicate with (more work has to be done but this should be the best solution)
let the desktop application connect directly to the database server (the same settings as OpenCart uses; requires only the desktop application development)
or as I mentioned, use a desktop DBMS tool for MySQL (or one that is universal), there are plenty of them, many also free... (no development at all but I'm not sure if this would be the desired solution)

Sitecore Basics

I am quite new to Sitecore WCM and have been doing a lot of research and readings. Could someone please help me to clarify the following
basics of Sitecore?
I've a number of ASP.net web applications. If I convert the project to Sitecore project will it just work magically?
If I want to create new site, do I need to manually create a new site in IIS or Sitecore does it when I publish?
Are there any online training videos available, could not find a single (except Sitecore marketing demo).
If we have MVC and Web forms applications, is it possible to migrate to Sitecore?
First off, welcome to Sitecore!
Regarding your questions:
I've a number of ASP.net web application. If I convert the project to Sitecore project will it just work magically?
A Sitecore website is an asp.net web application. It just happens to start off with databases, DLLs, and web.config entries that are ready for you to get the CMS up and running. Standard .NET code works just as normal. However, part of what happens when you first setup your site as a Sitecore website is that Sitecore starts intercepting requests for pages and attempts to bind them to pages in the content tree. If a content item doesn't exist with the matching path, it won't return.
This is particularly important if you plan on just standing up your existing pages alongside new Sitecore pages. Your URLs won't initially work, and you'll have to do some configuration to get them to resolve and be ignored by Sitecore.
However, if you do NOT want to put your pages alongside the site and instead integrate them into the Sitecore solution as content items, you'll likely need to re-architect your solution. Sitecore uses 'sublayouts' (ASCX) for different components on a page, and these need to be represented in the database and the code base, and then added to content items as part of their presentation details. This can be easy, if your site is already heavily architected towards components, but sometimes you'll need to create a bunch of ASCX to represent your different pages.
Your business logic should not be affected, unless you decide to make changes to start leveraging configurations in the Sitecore database or accessing properties of the current context item. In this manner, your code should execute "out-of-the-box".
If I want to create new site do I need to manually create a new site in IIS or Sitecore does it when I publish?
Sitecore doesn't "create" anything when it publishes. Publishing is really just an action of taking the content approved in the Master database and pushing it out to the Web database for the selected target. Your IIS sites, and anything else you need for your application, you just setup as you normally would.
Are there any online training videos available, could not find a single (except Sitecore marketing demo).
I highly recommend taking the developer training that Sitecore provides. It's a very good introduction to the concepts, especially if you aren't working with folks who have a lot of Sitecore expertise. It also allows you to meet some other folks who are getting into Sitecore and you can help each other out.
If we have MVC and Web forms applications, is it possible to migrate to Sitecore?
Sitecore is a .NET application at its core, and web forms work. MVC is also supported with the most recent versions of Sitecore.
I know this question is a little old, and already answered, but I think I have some info to add.
I've a number of ASP.net web application. If I convert the project to Sitecore project will it just work magically?
Nothing is magic. If you want the content management or marketing aspects of Sitecore, plan on rebuilding your site(s) within Sitecore.
If I want to create new site do I need to manually create a new site in IIS or Sitecore does it when I publish?
Sitecore is an IIS site. When you install Sitecore, it creates an IIS site along with at least 3 databases (core, master, & web). Sitecore can have multiple subsites, but they're all built within the single IIS site that is Sitecore.
Are there any online training videos available, could not find a single (except sitecore marketing demo).
These videos may not have existed when this question was originally answered...so here's a few I found useful.
Sitecore Training: Developer Fundamental Series - Creating Visual Studio Project for Sitecore
Sitecore MVC - Getting Started (Part 1)
Sitecore MVC -- View Renderings, #Html().Sitecore, and Models
If we have MVC and Web forms applications, is it possible to migrate to site core?
Webforms and MVC are both supported in Sitecore. You will be thinking of both of them in a different way whenever you are rebuilding them in Sitecore though.
1) You can create blank solution and add existing items like sublayout, css , javascript etc and obviously need to change some codebehind. But sitecore has different database structure compared to normal web applications , so you will need to create template, items etc.
2) For sitecore , you will need to create website in IIS and make entry in your host file as follows:
local path C:\Windows\System32\drivers\etc find hosts file and in that file add entry as
127.0.0.1 yoursitename.com
3) For demo video you can try Sitecore channel videos for basic sitecore learning from Youtube.

User customizable portal software

I am interested in portal software that allows a user to customize their experience by:
* Lay out the portlets as desired on the page
* Select which portlets to display
Any recommendations? Thanks!
I should say Liferay is the best when it comes to Portal with personalization. It provides
1) User pages (private level)
2) User pages (public level, shared with others)
3) Communities (Now sites, group of pages, shared with several users)
4) Themes, color schemes (personalized to page level)
5) Page layouts (personlized to page level)
6) Permissions (can be set with level portal, site, group, user, page, portlet)
-- Felix
I can help you with Microsoft related technologies, maybe someone else can complement with other vendors' \ Open source.
If your are using ASP.net 2.0 and above, it has the concept of "Web Parts" that allows a developer to build configurable, reusable components. This is a framework, so you still need to develop a solution using the concepts offered by the framework.
If you are not interested in developing the solution, MS has a product called "SharePoint Foundation" which is a FREE product (also has paid versions that are more enterprise oriented) that build on top of ASP.net, and provides implementation for those concepts (among many other features).
In SharePoint, a developer creates web part just like in asp.net, SP also allows easy creation of sites and pages. a user can add web parts to a page. web parts are distributed via the web parts gallery.
SharePoint also ships with a number of web parts, and there's a large community of SharePoint developers where you can find free open source web parts.
Also, in SP every user can personalize the layout of web parts in a page as he likes (you can disable this if you don't want to allow it).
In the Java JSR-286 world, you should try Liferay or eXo Platform. These are really the best open source portals. They do what you are requiring.
And you can also take a look at IBM Websphere Portal, or one of the multiple portals Oracle has bought.
enter link description here

Is it possible to build offline app with Appcelerator and Rhomobile?

I have recently found those two look-alike solutions/IDE for cross-mobile development: Appcelerator and Rhomobile (I know there are more) and I have questions regarding those two platform:
1) I believe the only way to build the view is using HTML, which I like alot the ideas. But, does that mean the application itself isn't available if the mobile is offline?
2) Do you guys know if it's possible to publish the application to the App Store and Google Store?
3) Are there any simulator for different mobile and do they support all those slide/tab events?
4) And finally, are there a way to transfert the App on your mobile phone without having to publish it anywhere.
Please note that I have no knowledge at all about mobile app dev and those two solutions (Appcelerator, Rhomobile) would be perfect for me as I am familiar with Javascript and HTML.
Thank you!
Ok I have only used appcelerator but:
1) a webview is like a browser without the address bar, it simply parses HTML, where it gets it from is up to you. If you write the HTML and pass in a file well then yes it can be offline, if it is used to parse a response from a webpage well then no as it needs to send a http request to the webpage.
As many people seem to mistake (for a reason unknown to me as all the documentation states other wise), appcelerator is not the same as phonegap, appcelerator uses its own javascript based API to allow developers to make native apps, it is NOT a webview wrapper. It is offline by default and allows you to send http requests if you need something online.
2) yes you can publish to the app store and the google store from appcelerator, the documentation walks you through the process.
3) Appcelerator requires you to download either the IOS sdk or Android SDK which come with simulators, appcelerator / the emulators support the standard events found on these devices.
4) With Android to can build a .apk file and distribute however you wish, with IOS the only way is to publish to the app store. the only other way is to make a mobile website instead of an application