My project is , I need to access xml file file from several places . It should upload from Desktop PC(my self) and same file can download from Tablet,PC, Ipod in several places in the world(Client).
That is My requirement .
Im beginner for it and i dont no about Azure.
I thought i can upload it to some where in cloud and client can access it through webservices .
My project is , I need to access xml file file from several places . It should upload from Desktop PC(my self) and same file can download from Tablet,PC, Ipod in several places in the world(Client).
You can just FileUpLoad to upload the xml file and then call its Save to save your file into the Server's folder, and then save the name to db.
1) Try to call Save to save the xml file into the folder of your server.
2) Then use System.IO.File.ReadAllBytes to convert from the xml file to a collection of binary bytes.
3) In the end, please save the byte[] into "Image" column with the column of SqlCommand.
Decker
Any sample for above methods . or link to refer pls.(to convert binary bytes)
Second , how i get back the records again to preview . Client need to download available XML files from their device(Tablet,Ipod etc) .Once They log they can see available files in there control panel. (file Names)
So if client click on file it should download.
My problem is here client REQUEST should pass through webservice . So i think i should use SOAP or something else(may be https//).
I need to know how to pass webrequst from client to my server through webservice.
msbsam
Member
259 Points
237 Posts
Pass XML to cloud database
Jan 26, 2013 03:57 AM|LINK
Hi Im very new with XML, I need to do
If database in cloud how can save xml file in cloud database and retreve back .
Do i want to use webservice .
How to pass XML data .
How to get back and put same in XML file
Thanks
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Pass XML to cloud database
Jan 28, 2013 12:37 AM|LINK
Are you using Azure?
msbsam
Member
259 Points
237 Posts
Re: Pass XML to cloud database
Jan 28, 2013 02:30 AM|LINK
Hello Decker,
My project is , I need to access xml file file from several places . It should upload from Desktop PC(my self) and same file can download from Tablet,PC, Ipod in several places in the world(Client).
That is My requirement .
Im beginner for it and i dont no about Azure.
I thought i can upload it to some where in cloud and client can access it through webservices .
Pls Help
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Pass XML to cloud database
Jan 28, 2013 07:36 AM|LINK
You can just FileUpLoad to upload the xml file and then call its Save to save your file into the Server's folder, and then save the name to db.
msbsam
Member
259 Points
237 Posts
Re: Pass XML to cloud database
Jan 28, 2013 07:44 AM|LINK
I need to save it in CLOUD . It s must
|
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Pass XML to cloud database
Jan 28, 2013 08:08 AM|LINK
You can:
1) Try to call Save to save the xml file into the folder of your server.
2) Then use System.IO.File.ReadAllBytes to convert from the xml file to a collection of binary bytes.
3) In the end, please save the byte[] into "Image" column with the column of SqlCommand.
msbsam
Member
259 Points
237 Posts
Re: Pass XML to cloud database
Jan 28, 2013 08:25 AM|LINK
OK . Got idea.
But i want to know how i pass that Image to cloud . Through webservice .
In my Local database server i can do it.
But dont no in cloud environment
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Pass XML to cloud database
Jan 28, 2013 10:23 AM|LINK
I'm afraid it's not possible or too hard to pass a collection of binary things……
msbsam
Member
259 Points
237 Posts
Re: Pass XML to cloud database
Jan 29, 2013 02:58 AM|LINK
You can:
1) Try to call Save to save the xml file into the folder of your server.
2) Then use System.IO.File.ReadAllBytes to convert from the xml file to a collection of binary bytes.
3) In the end, please save the byte[] into "Image" column with the column of SqlCommand.
Decker
Any sample for above methods . or link to refer pls.(to convert binary bytes)
Second , how i get back the records again to preview . Client need to download available XML files from their device(Tablet,Ipod etc) .Once They log they can see available files in there control panel. (file Names)
So if client click on file it should download.
My problem is here client REQUEST should pass through webservice . So i think i should use SOAP or something else(may be https//).
I need to know how to pass webrequst from client to my server through webservice.
ex- https://www.sitename.com?username='uid',Password='pwrd',token='00002',parameters='xmlfilename'
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Pass XML to cloud database
Jan 29, 2013 03:30 AM|LINK
Hi,
Look at how to apply this function:
byte[] bytes = System.IO.File.ReadAllBytes(path of file);
You cannot preview, because you've saved the file into binary formation.