Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > Windows Store Apps > Windows Store and Windows Azure Storage (C#) > Windows Store Apps and Windows Azure Storage



Clound SSD Virtual Server

Windows Store Apps and Windows Azure Storage

Windows Store Apps and Windows Azure Storage บริการ Storage บน Windows Azure เป็น Services หนึ่งที่น่าสนใจอย่างยิ่งที่จะนำมาใช้ในการจัดเก็บพวก Resource ต่าง ๆ จาก Windows Store Apps เพราะเราจะสามารถมีแหล่งไว้สำหรับจัดเก็บข้อมูลพวก Image หรือ Data ที่จัดอยู่ในรูปแบบของ Column และ Rows โดยที่ไม่จำเป็นจะต้องมี Server เป็นของตัวเอง ลดค่าใช้จ่ายด้านต้นทุนในการติดตั้ง Web Server และ Software อื่น ๆ ที่จำเป็น เพราะค่าบริการ Storage ของ Windows Azure นี้จะต้องบอกว่าค่าบริการค่อนข้างจะถูกมากและในบาง Level สามารถใช้งานได้ฟรี เช่น 5G แรกจะไม่เสียค่าบริการเป็นต้น หลัก ๆ แล้ว Storage นั้นประกอบด้วย Services อยู่ 3 ประเภท คือ Blob , Table และ Queue ซึ่งแต่ล่ะตัวใช้งานแตกต่างกันไป

Windows Store Apps and Windows Azure Storage


  • Blob service : จัดเก็บพวกข้อมูลทุก ๆ อย่าง เช่น HDD ของ VM , รุปภาพ , มีเดย , ไฟล์เอกสาร
  • Table service : จัดเก็บข้อมุลพวก ตาราง Column และ Rows
  • Queue service : จัดเก็บข้อมูลง่าย ๆ เป็นแบบ Queue (First-In Last-out)


อ่านเพิ่มเติม : รู้จักกับ Windows Azure Storage การสร้างและใช้งาน Storage เบื้องต้น

โดยที่ Storage Services ต่าง ๆ เหล่านี้ นอกจากจะสามารถสร้าง Services ผ่าน Azure Portal Management แล้ว เรายังสามารถเขียนโปรแกรมเพื่อติดต่อใช้งาน Services เหล่านี้ได้ กรณีที่ต้องการจัดเก็บพวกรูปภาพ เราสามารถเขียนโปรแกรมเพื่อ Upload ไฟล์ไปจัดเก็บไว้ยัง Blob services หรือในกรณีที่มีข้อมูลแบบ Column และ Rows ก็สามารถที่จะเขียนโปรแกรมเพื่อ นำข้อมูลไปจัดเก็บไว้ใน Table services (เหมือนกับ SQL Table)

Windows Store Apps and Windows Azure Storage

Windows Azure Storage กับ Blob Services

Windows Store Apps and Windows Azure Storage

Windows Azure Storage กับ Queue Services

Windows Store Apps and Windows Azure Storage

Windows Azure Storage กับ Table Services


และในการเขียน Windows Store Apps เพื่อติดต่อกับ Windows Azure Storage ปัจจุบันได้มีการออก SDK หรือ Library ที่ใช้สำหรับการเขียนผ่าน API ออกมาเรียบร้อยแล้ว ฉะนั้นการเขียนเพื่อเรียกใช้งาน Storage จึงมีความสะดวกในการเรียกใช้งานง่ายกกว่าเดิมมาก โดยสามารถ Download ได้ที่

Windows Azure Storage Client Library for Windows Runtime









ขั้นตอนการเรียกใช้งานบน Visual Studio

Windows Store Apps and Windows Azure Storage

เปิดโปรเจคปัจจุบัน

Windows Store Apps and Windows Azure Storage

อันนี้เป็นไฟล์ที่ได้จากการ Download ให้เรียกใช้ไฟล์ ให้เรียกใช้ไฟล์ Microsoft.WindowsAzure.Storage.winmd

Windows Store Apps and Windows Azure Storage

คลิกขวาที่ Reference เลือก Add Reference

Windows Store Apps and Windows Azure Storage

คลิกที่ Browse

Windows Store Apps and Windows Azure Storage

เลือกไฟล์ Microsoft.WindowsAzure.Storage.winmd

Windows Store Apps and Windows Azure Storage

เลือก Library

Windows Store Apps and Windows Azure Storage

ซึ่งตอนนี้ Library ได้เข้ามาใน Project และพร้อมสำหรับการเขียน Windows Store Apps กับ Azure Storage แล้ว

Windows Store Apps and Windows Azure Storage

ก่อนอื่นเราจะต้องมี API Keys ซึ่งสามารถ Get ได้จาก Azure Portal Management

Windows Store Apps and Windows Azure Storage

Key นี้จะมีความจำเป็นอย่างยิ่ง เพราะถ้าไม่มี Key ก็จะไม่สามารถ Access เข้าไปภายใน Storage ได้ โดยวิธีและขั้นตอนการสร้าง Storage สามารถอ่านได้จากบทความนี้

อ่านเพิ่มเติม : รู้จักกับ Windows Azure Storage การสร้างและใช้งาน Storage เบื้องต้น


และสำหรับวิธีการเริ่มเขียน Windows Store Apps กับ Windows Azure Storage สามารถอ่านได้จากหัวข้อถัดไป โดยจะยกตัวอย่างประกอบทั้ง 3 ประเภท คือ Blob , Table และ Queue







.

   
Share


ช่วยกันสนับสนุนรักษาเว็บไซต์ความรู้แห่งนี้ไว้ด้วยการสนับสนุน Source Code 2.0 ของทีมงานไทยครีเอท


ลองใช้ค้นหาข้อมูล


   


Bookmark.   
       
  By : ThaiCreate.Com Team (บทความเป็นลิขสิทธิ์ของเว็บไทยครีเอทห้ามนำเผยแพร่ ณ เว็บไซต์อื่น ๆ)
  Score Rating :  
  Create/Update Date : 2014-07-21 12:32:24 / 2017-03-19 15:08:22
  Download : No files
 Sponsored Links / Related

 
Windows Store Apps and Windows Azure Blob Storage (C#)
Rating :

 
Windows Store Apps and Windows Azure Table Storage (C#)
Rating :

 
Windows Store Apps and Windows Azure Queue Storage (C#)
Rating :


ThaiCreate.Com Forum


Comunity Forum Free Web Script
Jobs Freelance Free Uploads
Free Web Hosting Free Tools

สอน PHP ผ่าน Youtube ฟรี
สอน Android การเขียนโปรแกรม Android
สอน Windows Phone การเขียนโปรแกรม Windows Phone 7 และ 8
สอน iOS การเขียนโปรแกรม iPhone, iPad
สอน Java การเขียนโปรแกรม ภาษา Java
สอน Java GUI การเขียนโปรแกรม ภาษา Java GUI
สอน JSP การเขียนโปรแกรม ภาษา Java
สอน jQuery การเขียนโปรแกรม ภาษา jQuery
สอน .Net การเขียนโปรแกรม ภาษา .Net
Free Tutorial
สอน Google Maps Api
สอน Windows Service
สอน Entity Framework
สอน Android
สอน Java เขียน Java
Java GUI Swing
สอน JSP (Web App)
iOS (iPhone,iPad)
Windows Phone
Windows Azure
Windows Store
Laravel Framework
Yii PHP Framework
สอน jQuery
สอน jQuery กับ Ajax
สอน PHP OOP (Vdo)
Ajax Tutorials
SQL Tutorials
สอน SQL (Part 2)
JavaScript Tutorial
Javascript Tips
VBScript Tutorial
VBScript Validation
Microsoft Access
MySQL Tutorials
-- Stored Procedure
MariaDB Database
SQL Server Tutorial
SQL Server 2005
SQL Server 2008
SQL Server 2012
-- Stored Procedure
Oracle Database
-- Stored Procedure
SVN (Subversion)
แนวทางการทำ SEO
ปรับแต่งเว็บให้โหลดเร็ว


Hit Link
   







Load balance : Server 00
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่