Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / September 2006

Tip: Looking for answers? Try searching our database.

Recovering data out of dataset from client

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TiGeR79 - 25 Sep 2006 16:07 GMT
Hello,
I've written a webservice which returns a dataset containing just one table
with two columns. One colum holds a string while te second holds an image
serialized into a byte array.
This dataset is returned to a client application.
Now i'd like to know how i can retrieve the data thats inside of my dataset
? Especially my byte array cause i'd like to restore my picture out of it.
Thank in advance,
David++ - 29 Sep 2006 09:37 GMT
> Hello,
> I've written a webservice which returns a dataset containing just one table
[quoted text clipped - 4 lines]
> ? Especially my byte array cause i'd like to restore my picture out of it.
> Thank in advance,

Not too sure about the byte array but you can loop through the DataSet a row
at a time and extract the column data a row at a time until there is no more
rows to process i.e something like -

MyApp.MyService.Service service  = new MyApp.MyService.Service();

DataSet ds = new DataSet();

ds = service.GetMyDataSet();

if(ds!= null)
{
  foreach(DataRow row in ds.Tables[0].Rows)
  {
     // fetch the data from the row columns i.e. row[0], row[1]
  }
}

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.