How to upload image in windows azure mobile service from android?
I am new in android I am using windows azure mobile service and I am Inserting Text data successfully but now I want to Upload Image in windows azure mobile service. I know its is possible by Azure Storage I have seen this chrisrisner post but
its confusing can anyone tell me simple step by step process to save image in windows azure mobile service.
I will be Very Grateful for you. its very urgent
Hello Nitesh,
Saving an image into Azure Mobile Services doesn't scale very well and it's not recommended. It's recommended to use Azure Blob Storage for blob storage. It's cheaper and can store larger files.
You can definitely use both Azure Mobile Services and Blob Storage together by saving the name of the image in your Mobile Services table and storing the actual file in the Blob storage. This way when you need to retrieve the actual image, you would retrieve
it by it's name from Blob storage.
Here's a MSDN article that explains how to use
Azure Blob Storage.
Let me know if this helps.
Abdulwahab Suleiman
Similar Messages
-
How to print on HP deskjet 100 mobile L411 from android tablet
How to print on HP deskjet 100 mobile L411 from Asus Transformer android tablet
Pablo_BHi,
You can use Printshare app on your tablet. I believe you have to pay a small amount for it:
https://play.google.com/store/apps/details?id=com.dynamixsoftware.printershare.premium&hl=en
Regards.
BH
**Click the KUDOS thumb up on the left to say 'Thanks'**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem. -
Windows Azure Mobile Services - Sql Server - prebuilt columns
am I correct in assuming that tables for WAMS need to be created in the Azure management portal and have some columns precreated. Once the table is created:
is it ok to modify the columns in Visual Studio once the table has been created?
Can i just create the necessary items on my own or do I need to go through the management portal all the time?
How do i handle foreign keys and such between two tables?
Wally
MVP in ASP.NET - ASPInsider - Author - Otherwise I am a loser.hi Wally,
Thanks for posting!
>>is it ok to modify the columns in Visual Studio once the table has been created?
yes, we could modify our sql database data on the latest version (Azure SDK 2.2 ). You could use VS 2013 and install SDK2.2 to view the data. At the same time, you will
click Add Firewall Rule and a new rule will be automatically added for you.
Please see the blog about this question (http://weblogs.asp.net/scottgu/archive/2013/10/22/windows-azure-announcing-release-of-windows-azure-sdk-2-2-with-lots-of-goodies.aspx
>>Can i just create the necessary items on my own or do I need to go through the management portal all the time?
The answer is yes . If you want to manage your SQL database by azure portal, you could find your database form
"SQL Azure", and click the "Manage" to manage your DB. Like this image:
>>How do i handle foreign keys and such between two tables?
you could handle foreign such as using SQL. Refer to this page (http://stackoverflow.com/questions/48772/how-do-i-create-a-foreign-key-in-sql-server
Hope it helps.
Regards,
Will
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Azure Mobile Service as Data Source - "undefined"
I'm trying to access Azure Mobile Service from my Siena app, I created the zz_config table and added
the key/value pair, but no matter what I try I always get back only one item called 'undefined' in the Siena app.
I tried adding the correct schema in the value of the zz_config table but it also didn't work.
Any sugestions?
Thanks.wowsie, that was the clue, THANK you Robin!
Now I got the name of the Table into Siena. One step futher for me also! great!
Okey, it's worked now... :)
Here is some screenshots:
Best regards Terje F - Norway -
How to upload Images to azure media services and show the image on on click on Link?
Hi,
I want to upload the image to the Azure media service asset and show the Link on the page. When use clicks on the Link I want to show it user. How can I implement this with C#? Now I am uploading the image to asset as in the normal way and getting the URL
for that. But I am not able to show it user when he click on the image link.
Thanks,
Pavankuamr H KHI
Azure media services has a RESTful service and a C# SDK that you can use to interact with the Azure Media Services.
Here is the documentation and sample code for calling the Media services and using the SDK:
https://msdn.microsoft.com/en-us/library/dn735908.aspx?f=255&MSPPError=-2147217396
Aram Koukia | Blog: koukia.ca | Twitter:
@aramkoukia -
IOS how to upload image, how the
receiving server,can you help me?Hi. The iOS library for Azure Storage is currently in planning. In the meantime, please check out the following blog
http://chrisrisner.com/Mobile-Services-and-Windows-Azure-Storage which may help with your scenario. Thanks. -
Azure Mobile Service - Blob upload
Hi,
I am deepak , we have requirement of Uploading image from azure mobile service to azure blob,
suppose if the image upload interrupted because of network problem , is it resume the upload from where is stopped when next time network is available ?? or is there any way to implement it ??
thanks in advance ..please replay
Regards,
Deepakwowsie, that was the clue, THANK you Robin!
Now I got the name of the Table into Siena. One step futher for me also! great!
Okey, it's worked now... :)
Here is some screenshots:
Best regards Terje F - Norway -
How to upload images in to custom table and display them in normal ABAP report?
Hi Experts,
Can anyone suggest me ,how to upload images into customised table and display thoes images in normal abap report.
Thanks in Advance,
Rgds,
AnushaHi Experts,
Can anyone suggest me ,how to upload images into customised table and display thoes images in normal abap report.
Thanks in Advance,
Rgds,
Anusha -
How to upload Images in Forms 6i
Dear all,
How to upload images in Forms 6i and save it in database. Please anyone help me with example.
Thanking you
Shekharwhy do you need an active/X for this?
Can't you just create 2 default blocks on dept and on emp.
Use the relationship wizard to define the relation. and set the number of records displayed for the emp block to 10?
This will give you all you need with no hussle. -
How to upload images on hard drive to iPad?
how to upload images on hard drive to iPad?
You can import them into iTunes then use that to get them onto your iPad.
You can download the iCloud control panel and use photo stream to get the photos onto your iPad
You can e-mail them to yourself and them save them from that e-mail
You can upload them to something like dropbox and then download them onto your pad from there. -
Hi there!
Currently I'm able to send toast notifications to my user from my Azure mobile service using the following line of code in one of my server side scripts:
push.wns.send(opponent_id, payload, 'wns/toast', {
success: function(pushResponse) {
console.log("Sent push:", pushResponse);
request.respond(statusCodes.OK, {});
error: function(pushResponse) {
console.log("Error Sending push:", pushResponse);
request.respond(500, { error: pushResponse });
But I would like to send a raw notification to my user now, not a toast notification. I've set up a background tasks which runs as soon as a raw notification arrives(I've tested this through the diagnose option of my mobileservicehub and it works).
I want to send a raw notification now from the server side and I'm kind off lost on how to do that. I've looked for it but can't seem to find an answer to that question, I might be looking for the wrong stuff though.
I'm looking for a solution that looks the same as the one for a toast notification(as demonstrated in the code above).
Your help would be greatly appreciated!
Thanks in advance!
JanI found the solution to this it was in fact really really easy, I should have read the documentation more properly since it clearly said that the payload for raw notifications could be literally anything but the client has to take care of it.
So I figured that out! -
Offline data synchronization in azure mobile services on windows server 2008
Hi,
I have a class library which insert data into tables in azure mobile services on windows server 2008 OS for windows universal C# platform. I am trying to insert data using offline data synchronization.
I had installed SQLite runtime for windows 8.1 and windows phone 8.1, but unable to add reference 'SQLite for Windows Runtime(Windows8.1)'.
Please guide me whether windows server 2008 OS supports offline data synchronization in azure mobile services.
Thank you.I also have a Windows Server 2012 R2 system using Azure Backup, and I don't have the problem. However, you probably noticed that you use a different Azure Backup installation download for Windows Server 2008 R2 vs. Windows Server 2012 R2. Although both
show the same Microsoft Azure Recovery Services Agent version 2.0.8692.0 installed, my Windows Server 2012 R2 also lists Microsoft Azure Backup for Windows Server Essentials version 6.2.9805.9 installed as well. It could be the case the my problem with the
CATALOG FAILURE 0x80131500 errors is something specific to the version of Azure Backup installed on my Windows 2008 R2 servers.
Trilon, Inc. -
How to upload image files in sqlserver from jsp
hi friends,
i want to upload images to sqlserver how will i store url of the image or dorectly store the file in binary format, if we store in related path,plese give some ideas on store that paths in data base and how we store that image files in user directories.
byehi jay , I know that concept , but i dont know how to upload image files to server Please help me
here i am giving my problem
If any user register with site, he has the option to upload his image to the site, so i am using in html file upload option, But i dont know how to store that iamge into the server
please give me suggestion
regards
sudhakar -
hi,
i am confronting a problem how to upload image from local PC to web server . I am using Tomcat 4.0
please help me by sending code
thanksHi,
Here is the solution for uploading images and displaying images. I am using struts with JSP, so this code has a Action and ActionForm class. You can put the same code in Java Beans or Servlet class to run it. This code has two JSP files - one for Upload (upload.jsp)and other for Image(image.jsp) display. It has a Servlet also to display the image. Here is the code file wise.
Upload.jsp **********************************************************
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<html:html>
<head>
<title>New Page 1</title>
</head>
<body>
<html:form action="uploadAction.do" enctype="multipart/form-data" method="POST">
<p>File to upload
<html:file property="fileUpload" size="20"/></p>
<p><html:submit value="Upload" property="upload"/></p>
<p> </p>
<p><html:img src="image.jsp"/></p>
<p> </p>
</html:form>
</body>
</html:html>
Image.jsp*****************************************************************
<jsp:useBean id="upload" class="uploadtest.uploadActionForm" scope="session">
</jsp:useBean>
<%
byte[] rgb=(byte[])session.getAttribute("byte");
request.setAttribute("byArr", rgb);
%>
<!--
The image data is now on the request object.
Forward the user to the showImage servlet.
That servlet will process and display the image data contained on the request object.
-->
Image is<p>
<jsp:forward page="/showimage" />
Struts Action Class - UploadAction.java **************************************************
import javax.servlet.http.*;
import java.io.*;
import org.apache.struts.upload.FormFile;
import org.apache.struts.action.*;
public class uploadAction extends Action {
public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) {
uploadActionForm upload = (uploadActionForm) actionForm;
try {
int size=upload.getFileUpload().getFileSize();
//if (image != null) {
byte[] byteArr = new byte[size];
//Create an input stream to read the uploaded file.
ByteArrayInputStream bytein = new ByteArrayInputStream(upload.getFileUpload().getFileData());
// Load the input stream into the byte Array.
bytein.read(byteArr);
// Close the input stream.
bytein.close();
// Load the byte[] into the content field.
upload.setContent(byteArr);
HttpSession ses=httpServletRequest.getSession();
ses.setAttribute("byte",byteArr);
return actionMapping.findForward("success");
} catch (Exception ex) {
ex.printStackTrace();
return actionMapping.findForward("success");
Struts ActionForm class ---uploadActionForm.java***************************************************
package uploadtest;
import org.apache.struts.action.*;
import org.apache.struts.upload.*;
import javax.servlet.http.*;
public class uploadActionForm extends ActionForm {
private FormFile fileUpload;
private byte[] content;
public FormFile getFileUpload() {
return fileUpload;
public void setFileUpload(FormFile fileUpload) {
this.fileUpload = fileUpload;
public byte[] getContent()
return content;
public void setContent(byte[] theFile)
this.content = theFile;
public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
/**@todo: finish this method, this is just the skeleton.*/
return null;
public void reset(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
Servlet to display image --- ShowImage.java ********************************************************
import java.io.*;
import java.util.*;
public class ShowImage extends HttpServlet {
//Initialize global variables
protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
byte[] rgb = (byte[]) request.getAttribute("byArr");
if (rgb != null)
response.setContentType("image/gif");
OutputStream stream = response.getOutputStream();
stream.write(rgb);
else
response.setContentType("text");
response.getWriter().write("attribute byArr not found");
This code will enable to to upload and display the image. If you know Struts, then you can write the Struts-Config.xml file by yourself. Other wise write to me, I will send you that. If you want to save the image in database, then you have to keep it as BLOB datatype is database. For database you need to send the byte array in the uploadAction.java file to database. Database will keep the image as binary.
Thanks
Amit -
Integrating a PHP Web App with an Existing Azure Mobile Services and Mobile App
I've got an existing mobile app that is integrated with Azure's mobile services. The mobile services are currently connected to Azure Active Directory with MFA enabled. I'd like to build a separate PHP-based web application (Azure VM) that uses this existing
mobile service and authentication.
I reviewed the Azure PHP SDK, but didn't see any tie-ins to the Mobile Service. Additionally, Azure has some great tutorials, but for mobile services they all seem to focus on iOS, Android, and Windows phone. Any insight into how to tie a PHP-app into this
backend would be much appreciated!Although there isn't any client library for PHP, you can still access Mobile Service using the
Azure Mobile Service REST API.
Abdulwahab Suleiman
Maybe you are looking for
-
Can i have html code for date select options (SEARCH HELP)
Hi frinds, I have a BSP Page with input as date. Can i have html code for date select options (SEARCH HELP) Moosa
-
When I sign into my facebook account the pages are good that it looks normal, I go into another page where I have to switch to play another game and that screen is tiny now last night I was playing wordhunt and created some words at the same time so
-
How to show the logged in User's displayName in a custom wsrp portlet
Hi, I have a custom wsrp portlet added to webcenter space. Within the portlet I need to show the logged in(sso) user's displayName. I have tried using #{webCenterProfile[securityContext.userName].displayName} but its not working. Any pointers would b
-
How to make UIPagecontrol of UIPageviewController transparent?
I am using UIPageviewController in my application where i want to make UIPagecontrol of UIPageeviewController transparent. While giving background color to clear color its not working but when giving background color to any other color like red itswo
-
Hello Has anyone received this error in the rich client when trying to save a document? security could not be added to the document (WIS 30906) thanks