In my application I am adding one section photos of my institute.
In that I want to create folders for different events eg folder for achievements of students,My all students etc.
Here I am uploading photos from local computer or facebook by using ink file picker.
I used "pick multiple" option from ink file picker.
By using it I am getting urls of all images one after other.
I want to split all that urls and store them in array.
And in folder all the urls should be shown in image form.
How can I do this?
Loading
Jignesh TrivediPosted Apr 8, 2014, 8:06 AM
This is nothing but JSON string object. you can convert it to the object using System.Web.Script.Serialization.JavaScriptSerializer class.
like
string json = "[{\"url\":\"https://www.filepicker.io/api/file/xyz\",\"filename\":\"image.jpg\",\"mimetype\":\"image/jpeg\",\"size\":10006,\"isWriteable\":true},{\"url\":\"https://www.filepicker.io/api/file/lmn\",\"filename\":\"image2.jpg\",\"mimetype\":\"image/jpeg\",\"size\":45998,\"isWriteable\":true},{\"url\":\"https://www.filepicker.io/api/file/stu\",\"filename\":\"image3.jpg\",\"mimetype\":\"image/jpeg\",\"size\":98071,\"isWriteable\":true}]";(json);
var objects = new JavaScriptSerializer().Deserialize
string url = objects[0]["url"];
hope this will help you.piya pPosted Apr 9, 2014, 12:20 AM
piya pPosted Apr 8, 2014, 7:00 AM
{\"url\":\"https://www.filepicker.io/api/file/lmn\",\"filename\":\"image2.jpg\",\"mimetype\":\"image/jpeg\",\"size\":45998,\"isWriteable\":true},
{\"url\":\"https://www.filepicker.io/api/file/stu\",\"filename\":\"image3.jpg\",\"mimetype\":\"image/jpeg\",\"size\":98071,\"isWriteable\":true}]"
are my urls
Jignesh TrivediPosted Apr 8, 2014, 2:46 AM
Is there any separator between all urls?
can you please share url string what you get from youtube what is your expected result?